Puoi confrontare due campi con $where, ma esegue JavaScript per ogni documento e può essere lento. Se possibile, combinalo con query indicizzate. MongoDB 3.6 e successivi supportano anche $expr.
db.T.find({
$where: function() {
return this.Grade1 > this.Grade2;
}
})Forma compatta:
db.T.find({ $where: "this.Grade1 > this.Grade2" })