2017-02-16 125 views

回答

0

是的,这是可能的。考虑你正在尝试获取a大于b的文档。下面的代码是这样做的。

db.collectionName.find({$where: "this.a > this.b"}) 
相关问题