Type Definitions
QueryOperators
Properties:
Name | Type | Description | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Equal |
string | Equals operator: $eq - Matches values that are equal to a specified value.
Example:
|
|||||||||||||||
NotEqual |
string | Not Equals operator: $ne - Matches values that are not equal to a specified value.
Example:
|
|||||||||||||||
GreaterThan |
string | Greater Than operator: $gt - Matches values that are greater than a specified value.
Example:
|
|||||||||||||||
GreaterThanOrEqual |
string | Greater Than or Equal To operator: $gte - Matches values that are greater than or equal to a specified value.
Example:
|
|||||||||||||||
LessThan |
string | Less Than operator: $lt - Matches values that are less than a specified value.
Example:
|
|||||||||||||||
LessThanOrEqual |
string | Less Than or Equal To operator: $lte - Matches values that are less than or equal to a specified value.
Example:
|
|||||||||||||||
In |
string | In operator: $in - Matches any of the values specified in an array.
Example:
|
|||||||||||||||
NotIn |
string | Not In operator: $nin - Matches values that are not in the specified array.
Example:
|
|||||||||||||||
Exists |
string | Exists operator: $exists - Matches documents that have the specified field.
Example:
|
|||||||||||||||
Type |
string | Type operator: $type - Matches documents where the value of a field has a specific BSON data type.
Example:
|
|||||||||||||||
Modulus |
string | Modulus operator: $mod - Performs a modulo operation on the value of a field.
Example:
|
|||||||||||||||
Regex |
string | Regular Expression operator: $regex - Matches documents where a field matches a regular expression pattern.
Example:
|
|||||||||||||||
Text |
string | Text Search operator: $text - Performs a full-text search on a field.
Example:
|
|||||||||||||||
TextOperators |
Object | Text operator: $text - Performs a full-text search on a field.
Properties
|
|||||||||||||||
Where |
string | Where operator: $where - Matches documents that satisfy a JavaScript expression.
Example:
|
|||||||||||||||
Size |
string | Size operator: $size - Matches documents where an array field has a specific size.
Example:
|
|||||||||||||||
All |
string | All Elements Match operator: $all - Matches documents where all elements in an array field match a specified condition.
Example:
|
|||||||||||||||
ElemMatch |
string | Element Match operator: $elemMatch - Matches documents where at least one element in an array field matches a specified condition.
Example:
|
|||||||||||||||
Not |
string | Not operator: $not - Inverts the effect of a query expression.
Example:
|
|||||||||||||||
Nor |
string | Nor operator: $nor - Joins query clauses with a logical NOR and selects the documents that fail all the query clauses.
Example:
|
|||||||||||||||
Or |
string | Or operator: $or - Joins query clauses with a logical OR and selects the documents that satisfy at least one of the query clauses.
Example:
|
|||||||||||||||
And |
string | And operator: $and - Joins query clauses with a logical AND and selects the documents that satisfy all the query clauses.
Example:
|
|||||||||||||||
GeoWithin |
string | GeoWithin operator: $geoWithin - Matches documents that are within a specified geometry.
Example:
|
|||||||||||||||
GeoIntersects |
string | GeoIntersects operator: $geoIntersects - Matches documents that intersect with a specified geometry.
Example:
|
|||||||||||||||
Near |
string | Near operator: $near - Returns geospatial objects in proximity to a specified point.
Example:
|
|||||||||||||||
NearSphere |
string | Near Sphere operator: $nearSphere - Returns geospatial objects in proximity to a specified point on a sphere.
Example:
|
|||||||||||||||
Geometry |
string | Geometry operator: $geometry - Defines a geospatial shape for use with the $geoWithin and $geoIntersects operators.
Example:
|
|||||||||||||||
CenterSphere |
string | Center Sphere operator: $centerSphere - Defines a circle on a sphere for use with the $geoWithin and $geoIntersects operators.
Example:
|
|||||||||||||||
Box |
string | Box operator: $box - Defines a rectangle for use with the $geoWithin and $geoIntersects operators.
Example:
|
|||||||||||||||
Polygon |
string | Polygon operator: $polygon - Defines a polygon for use with the $geoWithin and $geoIntersects operators.
Example:
|
|||||||||||||||
UniqueDocs |
string | Unique Documents operator: $uniqueDocs - Specifies that the results of a geospatial query should include only one of each distinct document.
Example:
|
|||||||||||||||
Comment |
string | Comment operator: $comment - Adds a comment to a query to help with debugging or profiling.
Example:
|
Collection of query operators for MongoDB queries.
Type:
- Object