I am fairly new to MongoDB and I am trying to create a filter that combines more than 1 property.
For example, let us say that I want to filter the search results based on whether the multiplication of two properties a and b from model Object is more than threshold.
Would I do something like this?
Object.find({
a * b : {$gt: threshold}
});
I have tried this, but I am getting all sorts of errors.