On this page本页内容
Note
For details on specific operator, including syntax and examples, click on the specific operator to go to its reference page.有关特定运算符的详细信息,包括语法和示例,请单击特定运算符以转到其参考页。
For comparison of different BSON type values, see the specified BSON comparison order.有关不同BSON类型值的比较,请参阅指定的BSON比较顺序。
$eq |
|
$gt |
|
$gte |
|
$in |
|
$lt |
|
$lte |
|
$ne |
|
$nin |
$and |
AND returns all documents that match the conditions of both clauses.AND 联接,并返回与这两个子句的条件匹配的所有文档。 |
$not |
|
$nor |
NOR returns all documents that fail to match both clauses.NOR 连接查询子句,返回所有未能同时匹配这两个子句的文档。 |
$or |
OR returns all documents that match the conditions of either clause.OR 联接,返回与任一子句的条件匹配的所有文档。 |
$exists |
|
$type |
$expr |
|
$jsonSchema |
|
$mod |
|
$regex |
|
$text |
|
$where |
$geoIntersects |
$geoIntersects .$geoIntersects 。 |
$geoWithin |
$geoWithin .$geoWithin 。 |
$near |
$near .$near 。 |
$nearSphere |
$nearSphere .$nearSphere 。 |
$all |
|
$elemMatch |
$elemMatch conditions.$elemMatch 条件匹配,则选择文档。 |
$size |
$bitsAllClear |
0 .0 。 |
$bitsAllSet |
1 .1 。 |
$bitsAnyClear |
0 .0 的数字或二进制值。 |
$bitsAnySet |
1 . |
$ |
|
$elemMatch |
$elemMatch condition.$elemMatch 条件匹配的第一个元素。 |
$meta |
$text operation.$text 操作期间分配的文档分数。 |
$slice |