Attributes
Members list
Value members
Concrete methods
Creates a filter that matches all documents where the value of a field is an array that contains all the specified values.
Creates a filter that matches all documents where the value of a field is an array that contains all the specified values.
Value parameters
- fieldName
-
the field name
- values
-
the list of values
Attributes
- Returns
-
the filter
Creates a filter that matches all documents where all of the bit positions are clear in the field.
Creates a filter that matches all documents where all of the bit positions are clear in the field.
Value parameters
- bitmask
-
the bitmask
- fieldName
-
the field name
Attributes
- Returns
-
the filter
- Since
-
3.2
Creates a filter that matches all documents where all of the bit positions are set in the field.
Creates a filter that matches all documents where all of the bit positions are set in the field.
Value parameters
- bitmask
-
the bitmask
- fieldName
-
the field name
Attributes
- Returns
-
the filter
- Since
-
3.2
Creates a filter that matches all documents where any of the bit positions are clear in the field.
Creates a filter that matches all documents where any of the bit positions are clear in the field.
Value parameters
- bitmask
-
the bitmask
- fieldName
-
the field name
Attributes
- Returns
-
the filter
- Since
-
3.2
Creates a filter that matches all documents where any of the bit positions are set in the field.
Creates a filter that matches all documents where any of the bit positions are set in the field.
Value parameters
- bitmask
-
the bitmask
- fieldName
-
the field name
Attributes
- Returns
-
the filter
- Since
-
3.2
Creates a filter that matches all documents containing a field that is an array where at least one member of the array matches the given filter.
Creates a filter that matches all documents containing a field that is an array where at least one member of the array matches the given filter.
Value parameters
- fieldName
-
the field name
- filter
-
the filter to apply to each element
Attributes
- Returns
-
the filter
Creates a filter that matches all documents where the value of the field name equals the specified value. Note that this doesn't actually generate a $eq operator, as the query language doesn't require it.
Creates a filter that matches all documents where the value of the field name equals the specified value. Note that this doesn't actually generate a $eq operator, as the query language doesn't require it.
Value parameters
- fieldName
-
the field name
- value
-
the value, which may be null
Attributes
- Returns
-
the filter
Creates a filter that matches all documents that contain the given field.
Creates a filter that matches all documents that contain the given field.
Value parameters
- fieldName
-
the field name
Attributes
- Returns
-
the filter
Creates a filter that matches all documents containing a field with geospatial data that intersects with the specified shape.
Creates a filter that matches all documents containing a field with geospatial data that intersects with the specified shape.
Value parameters
- fieldName
-
the field name
- geometry
-
the bounding GeoJSON geometry object
Attributes
- Returns
-
the filter
- Since
-
3.1
Creates a filter that matches all documents containing a field with geospatial data that intersects with the specified shape.
Creates a filter that matches all documents containing a field with geospatial data that intersects with the specified shape.
Value parameters
- fieldName
-
the field name
- geometry
-
the bounding GeoJSON geometry object
Attributes
- Returns
-
the filter
- Since
-
3.1
Creates a filter that matches all documents containing a field with geospatial data that exists entirely within the specified shape.
Creates a filter that matches all documents containing a field with geospatial data that exists entirely within the specified shape.
Value parameters
- fieldName
-
the field name
- geometry
-
the bounding GeoJSON geometry object
Attributes
- Returns
-
the filter
- Since
-
3.1
Creates a filter that matches all documents containing a field with geospatial data that exists entirely within the specified shape.
Creates a filter that matches all documents containing a field with geospatial data that exists entirely within the specified shape.
Value parameters
- fieldName
-
the field name
- geometry
-
the bounding GeoJSON geometry object
Attributes
- Returns
-
the filter
- Since
-
3.1
Creates a filter that matches all documents containing a field with grid coordinates data that exist entirely within the specified box.
Creates a filter that matches all documents containing a field with grid coordinates data that exist entirely within the specified box.
Value parameters
- fieldName
-
the field name
- lowerLeftX
-
the lower left x coordinate of the box
- lowerLeftY
-
the lower left y coordinate of the box
- upperRightX
-
the upper left x coordinate of the box
- upperRightY
-
the upper left y coordinate of the box
Attributes
- Returns
-
the filter
- Since
-
3.1
Creates a filter that matches all documents containing a field with grid coordinates data that exist entirely within the specified circle.
Creates a filter that matches all documents containing a field with grid coordinates data that exist entirely within the specified circle.
Value parameters
- fieldName
-
the field name
- radius
-
the radius of the circle, as measured in the units used by the coordinate system
- x
-
the x coordinate of the circle
- y
-
the y coordinate of the circle
Attributes
- Returns
-
the filter
- Since
-
3.1
Creates a filter that matches all documents containing a field with geospatial data (GeoJSON or legacy coordinate pairs) that exist entirely within the specified circle, using spherical geometry. If using longitude and latitude, specify longitude first.
Creates a filter that matches all documents containing a field with geospatial data (GeoJSON or legacy coordinate pairs) that exist entirely within the specified circle, using spherical geometry. If using longitude and latitude, specify longitude first.
Value parameters
- fieldName
-
the field name
- radius
-
the radius of the circle, in radians
- x
-
the x coordinate of the circle
- y
-
the y coordinate of the circle
Attributes
- Returns
-
the filter
- Since
-
3.1
Creates a filter that matches all documents containing a field with grid coordinates data that exist entirely within the specified polygon.
Creates a filter that matches all documents containing a field with grid coordinates data that exist entirely within the specified polygon.
Value parameters
- fieldName
-
the field name
- points
-
a list of pairs of x, y coordinates. Any extra dimensions are ignored
Attributes
- Returns
-
the filter
- Since
-
3.1
Creates a filter that matches all documents where the value of the given field is greater than the specified value.
Creates a filter that matches all documents where the value of the given field is greater than the specified value.
Value parameters
- fieldName
-
the field name
- value
-
the value
Attributes
- Returns
-
the filter
Creates a filter that matches all documents where the value of the given field is greater than or equal to the specified value.
Creates a filter that matches all documents where the value of the given field is greater than or equal to the specified value.
Value parameters
- fieldName
-
the field name
- value
-
the value
Attributes
- Returns
-
the filter
Creates a filter that matches all documents where the value of _id field equals the specified value. Note that this doesn't actually generate a $eq operator, as the query language doesn't require it.
Creates a filter that matches all documents where the value of _id field equals the specified value. Note that this doesn't actually generate a $eq operator, as the query language doesn't require it.
Value parameters
- value
-
the value, which may be null
Attributes
- Returns
-
the filter
- Since
-
3.4
Creates a filter that matches all documents where the value of a field equals any value in the list of specified values.
Creates a filter that matches all documents where the value of a field equals any value in the list of specified values.
Value parameters
- fieldName
-
the field name
- values
-
the list of values
Attributes
- Returns
-
the filter
Creates a filter that matches all documents where the value of the provided field is null.
Creates a filter that matches all documents where the value of the provided field is null.
Value parameters
- fieldName
-
the field name
Attributes
- Returns
-
the filter
Creates a filter that matches all documents that validate against the given JSON schema document.
Creates a filter that matches all documents that validate against the given JSON schema document.
Value parameters
- schema
-
the JSON schema to validate against
Attributes
- Returns
-
the filter
- Since
-
3.6
Creates a filter that matches all documents where the value of the given field is less than the specified value.
Creates a filter that matches all documents where the value of the given field is less than the specified value.
Value parameters
- fieldName
-
the field name
- value
-
the value
Attributes
- Returns
-
the filter
Creates a filter that matches all documents where the value of the given field is less than or equal to the specified value.
Creates a filter that matches all documents where the value of the given field is less than or equal to the specified value.
Value parameters
- fieldName
-
the field name
- value
-
the value
Attributes
- Returns
-
the filter
Creates a filter that matches all documents where the value of a field divided by a divisor has the specified remainder (i.e. perform a modulo operation to select documents).
Creates a filter that matches all documents where the value of a field divided by a divisor has the specified remainder (i.e. perform a modulo operation to select documents).
Value parameters
- divisor
-
the modulus
- fieldName
-
the field name
- remainder
-
the remainder
Attributes
- Returns
-
the filter
Creates a filter that matches all documents where the value of the field name does not equal the specified value.
Creates a filter that matches all documents where the value of the field name does not equal the specified value.
Value parameters
- fieldName
-
the field name
- value
-
the value, which may be null
Attributes
- Returns
-
the filter
Creates a filter that matches all documents containing a field with geospatial data that is near the specified GeoJSON point.
Creates a filter that matches all documents containing a field with geospatial data that is near the specified GeoJSON point.
Value parameters
- fieldName
-
the field name
- geometry
-
the bounding GeoJSON geometry object
- maxDistance
-
the maximum distance from the point, in meters. It may be null.
- minDistance
-
the minimum distance from the point, in meters. It may be null.
Attributes
- Returns
-
the filter
- Since
-
3.1
Creates a filter that matches all documents containing a field with geospatial data that is near the specified GeoJSON point.
Creates a filter that matches all documents containing a field with geospatial data that is near the specified GeoJSON point.
Value parameters
- fieldName
-
the field name
- geometry
-
the bounding GeoJSON geometry object
- maxDistance
-
the maximum distance from the point, in meters. It may be null.
- minDistance
-
the minimum distance from the point, in meters. It may be null.
Attributes
- Returns
-
the filter
- Since
-
3.1
Creates a filter that matches all documents containing a field with geospatial data that is near the specified point.
Creates a filter that matches all documents containing a field with geospatial data that is near the specified point.
Value parameters
- fieldName
-
the field name
- maxDistance
-
the maximum distance from the point, in radians. It may be null.
- minDistance
-
the minimum distance from the point, in radians. It may be null.
- x
-
the x coordinate
- y
-
the y coordinate
Attributes
- Returns
-
the filter
- Since
-
3.1
Creates a filter that matches all documents containing a field with geospatial data that is near the specified GeoJSON point using spherical geometry.
Creates a filter that matches all documents containing a field with geospatial data that is near the specified GeoJSON point using spherical geometry.
Value parameters
- fieldName
-
the field name
- geometry
-
the bounding GeoJSON geometry object
- maxDistance
-
the maximum distance from the point, in meters. It may be null.
- minDistance
-
the minimum distance from the point, in meters. It may be null.
Attributes
- Returns
-
the filter
- Since
-
3.1
Creates a filter that matches all documents containing a field with geospatial data that is near the specified GeoJSON point using spherical geometry.
Creates a filter that matches all documents containing a field with geospatial data that is near the specified GeoJSON point using spherical geometry.
Value parameters
- fieldName
-
the field name
- geometry
-
the bounding GeoJSON geometry object
- maxDistance
-
the maximum distance from the point, in meters. It may be null.
- minDistance
-
the minimum distance from the point, in meters. It may be null.
Attributes
- Returns
-
the filter
- Since
-
3.1
Creates a filter that matches all documents containing a field with geospatial data that is near the specified point using spherical geometry.
Creates a filter that matches all documents containing a field with geospatial data that is near the specified point using spherical geometry.
Value parameters
- fieldName
-
the field name
- maxDistance
-
the maximum distance from the point, in radians. It may be null.
- minDistance
-
the minimum distance from the point, in radians. It may be null.
- x
-
the x coordinate
- y
-
the y coordinate
Attributes
- Returns
-
the filter
- Since
-
3.1
Creates a filter that matches all documents where the value of a field does not equal any of the specified values or does not exist.
Creates a filter that matches all documents where the value of a field does not equal any of the specified values or does not exist.
Value parameters
- fieldName
-
the field name
- values
-
the list of values
Attributes
- Returns
-
the filter
Creates a filter that matches all documents that do not contain the given field.
Creates a filter that matches all documents that do not contain the given field.
Value parameters
- fieldName
-
the field name
Attributes
- Returns
-
the filter
Creates a filter that matches all documents where the value of the field matches the given regular expression pattern.
Creates a filter that matches all documents where the value of the field matches the given regular expression pattern.
Value parameters
- fieldName
-
the field name
- pattern
-
the pattern
Attributes
- Returns
-
the filter
Creates a filter that matches all documents where the value of the field matches the given regular expression pattern.
Creates a filter that matches all documents where the value of the field matches the given regular expression pattern.
Value parameters
- fieldName
-
the field name
- regex
-
the pattern
Attributes
- Returns
-
the filter
Creates a filter that matches all documents where the value of a field is an array of the specified size.
Creates a filter that matches all documents where the value of a field is an array of the specified size.
Value parameters
- fieldName
-
the field name
- size
-
the size of the array
Attributes
- Returns
-
the filter
Creates a filter that matches all documents matching the given search term.
Creates a filter that matches all documents matching the given search term.
Value parameters
- search
-
the search term
Attributes
- Returns
-
the filter
Creates a filter that matches all documents matching the given search term.
Creates a filter that matches all documents matching the given search term.
Value parameters
- search
-
the search term
- textSearchOptions
-
the text search options to use
Attributes
- Returns
-
the filter
Creates a filter that matches all documents where the value of the field is of the specified BSON type.
Creates a filter that matches all documents where the value of the field is of the specified BSON type.
Value parameters
- fieldName
-
the field name
- fieldType
-
the BSON type
Attributes
- Returns
-
the filter
Creates a filter that matches all documents where the value of the field is of the specified BSON type.
Creates a filter that matches all documents where the value of the field is of the specified BSON type.
Value parameters
- fieldName
-
the field name
- fieldType
-
the string representation of the BSON type
Attributes
- Returns
-
the filter
Creates a filter that matches all documents for which the given expression is true.
Creates a filter that matches all documents for which the given expression is true.
Value parameters
- javaScriptExpression
-
the JavaScript expression
Attributes
- Returns
-
the filter
Inherited methods
Attributes
- Inherited from:
- AsJavaConverters
Attributes
- Inherited from:
- AsJavaConverters
Attributes
- Inherited from:
- AsJavaConverters
Attributes
- Inherited from:
- AsJavaConverters
Attributes
- Inherited from:
- AsJavaConverters
Attributes
- Inherited from:
- AsJavaConverters
Attributes
- Inherited from:
- AsJavaConverters
Attributes
- Inherited from:
- AsJavaConverters
Attributes
- Inherited from:
- AsJavaConverters
Attributes
- Inherited from:
- AsJavaConverters
Attributes
- Inherited from:
- AsJavaConverters
Attributes
- Inherited from:
- AsJavaConverters
Attributes
- Inherited from:
- AsJavaConverters