I've got a model where not every property is required. I'd like to query the model and return all instances where the property is defined.
Here's what I think the code should look like, but it doesn't work. Any ideas or links to some detailed documentation?
MyModel.find()
.where({
"propertyThatMayExist" : {
"!=" : undefined
}
});
Thanks a bunch in advance!