1

我正在使用以下查询:

{ $match: { $where: "price > 5" }}

但它抛出错误为:
exception: FieldPath field names may not start with '$'." , "code" : 16410 , "ok" : 0.0}

4

1 回答 1

0

据我记得,这有点像

{$match: {"price":{$gt:5}}
于 2013-08-01T18:20:41.140 回答