$all | Matches arrays that contain all elements specified in the query.匹配包含查询中指定的所有元素的数组。 |
$and | Joins query clauses with a logical AND and returns documents that match the conditions of all clauses.使用逻辑AND连接查询子句,并返回符合所有子句条件的文档。 |
$bitsAllClear | Matches numeric or binary values in which a set of bit positions all have a value of 0.匹配一组位位置都为0的数值或二进制值。 |
$bitsAllSet | Matches numeric or binary values in which a set of bit positions all have a value of 1.匹配数值或二进制值,其中一组位位置的值都为1。 |
$bitsAnyClear | Matches numeric or binary values in which any bit from a set of bit positions has a value of 0.匹配数值或二进制值,其中一组位位置中的任一位的值为0。 |
$bitsAnySet | Matches numeric or binary values in which any bit from a set of bit positions has a value of 1.匹配数值或二进制值,其中一组位位置中的任一位的值为1。 |
$elemMatch | Selects documents if at least one element in the array field matches all the specified $elemMatch conditions.如果数组字段中至少有一个元素与所有指定的$elemMatch条件匹配,则选择文档。 |
$eq | Matches values that are equal to a specified value.匹配等于指定值的值。 |
$exists | Matches documents that have the specified field.匹配具有指定字段的文档。 |
$expr | Allows use of expressions in query predicates.允许在查询谓词中使用表达式。 |
$geoIntersects | Selects geometries that intersect with a GeoJSON geometry. 选择与GeoJSON几何图形相交的几何图形。The 2dsphere index supports $geoIntersects.2dsphere索引支持$geoIntersects。 |
$geoWithin | Selects geometries within a bounding GeoJSON geometry. 在边界GeoJSON几何图形中选择几何图形。The 2dsphere and 2d indexes support $geoWithin.2dsphere和2d索引支持$geoWithin。 |
$gt | Matches values that are greater than a specified value.匹配大于指定值的值。 |
$gte | Matches values that are greater than or equal to a specified value.匹配大于或等于指定值的值。 |
$jsonSchema | Validates documents against the given JSON Schema.根据给定的JSON模式验证文档。 |
$in | Matches any of the values specified in an array.匹配数组中指定的任何值。 |
$lt | Matches values that are less than a specified value.匹配小于指定值的值。 |
$lte | Matches values that are less than or equal to a specified value.匹配小于或等于指定值的值。 |
$mod | Matches documents based on the result of a modulo operation on a field value.根据字段值的模运算结果匹配文档。 |
$ne | Matches all values that are not equal to a specified value.匹配所有不等于指定值的值。 |
$near | Returns geospatial objects in proximity to a point. Requires a geospatial index. 返回点附近的地理空间对象。需要地理空间索引。The 2dsphere and 2d indexes support $near.2dsphere和2d索引支持$near。 |
$nearSphere | Returns geospatial objects in proximity to a point on a sphere. Requires a geospatial index. 返回球体上某点附近的地理空间对象。需要地理空间索引。The 2dsphere and 2d indexes support $nearSphere.2dsphere和2d索引支持$nearSphere。 |
$nin | Matches if the value is not equal to any of a given list of values.如果该值不等于给定值列表中的任何一个,则匹配。 |
$nor | Joins query clauses with a logical NOR and returns all documents that fail to match all clauses.将查询子句与逻辑NOR连接,并返回所有与所有子句不匹配的文档。 |
$not | Inverts the effect of a query predicate and returns documents that do not match the query predicate.反转查询谓词的效果,并返回与查询谓词不匹配的文档。 |
$or | Joins query clauses with a logical OR and returns all documents that match at least one clause.使用逻辑OR连接查询子句,并返回至少与一个子句匹配的所有文档。 |
$regex | Matches documents where values match a specified regular expression.匹配值与指定正则表达式匹配的文档。 |
$size | Selects documents if the array field contains the specified number of elements.如果数组字段包含指定数量的元素,则选择文档。 |
$type | Matches documents if a field is of the specified type.如果字段属于指定类型,则匹配文档。 |
$where | Matches documents that satisfy a JavaScript expression.匹配满足JavaScript表达式的文档。 |