标签: mongodb mongo-java
我使用以下查询:
{ $match: { $where: "price > 5" }}
但是它会抛出错误: exception: FieldPath field names may not start with '$'." , "code" : 16410 , "ok" : 0.0}
exception: FieldPath field names may not start with '$'." , "code" : 16410 , "ok" : 0.0}
答案 0 :(得分:0)
据我记得,它就像是
{$match: {"price":{$gt:5}}