$ne | 匹配所有不等于指定值的值。 |
$gt | 匹配大于指定值的值。 |
$gte | 匹配大于或等于指定值的值。 |
$lt | 匹配小于指定值的值。 |
$lte | 匹配小于或等于指定值的值。 |
$in | 匹配数组中指定的任何值。 |
$nin | 不匹配数组中指定的任何值。 |
$expr | 比较同一条数据里的两个字段,可以使用$eq、$ne、$lt、$lte、$gt、$gte,字段用 |
$and | 返回满足所有子句条件的文档。 |
$or | 返回与任一子句条件匹配的文档。 |
$nor | 返回所有不能匹配的文档。 |
$not | 返回不匹配的文档,包括该字段为空的文档。 |
$exists | 匹配具有指定字段的文档。 |
$regex | 选择值与指定的正则表达式匹配的文档。 |
$type | 匹配字段是指定类型的文档。string/object/array/bool/null/number/int/decimal/timestamp/objectId/binData |
$and | 匹配包含查询中指定的所有元素的数组。 |
$elemMatch | 每个数组元素都满足指定条件的文档。 |
$size | 匹配数组长度为指定大小的文档。 |
更多查询选择器请参考官网文档