Insert Query -
db.product1.insertOne({ “_id” : 24, “pno” : “P320”, “pname” : “Juicer”, “price” : 5000, “qty” : 44, “MRP” : 10000 });
Expression query - db.product1.find({$expr:{$gte:[“price”,“MRP”]}});
Im expecting above document to be returned since price is greater that 10000. But there is no output. Please suggest.