I want to compare the object keys in order to make decision, something like below.
Schema:
var ItemSchema = new Schema({
price: {type: Number},
msrp: {type: Number},
});
Query:
Note: This is just prototype of my intention and not a legal code.
Item.find({'(100 - ((price * 100)/msrp))' : {$gt: 60 }})
Where msrp and price inside $gt should be the values of the current element of find processing.