Query Class |
Namespace: MongoDB.Driver.Builders
The Query type exposes the following members.
Name | Description | |
---|---|---|
All |
Tests that the named array element contains all of the values (see $all).
| |
And(IMongoQuery) |
Tests that all the queries are true (see $and in newer versions of the server).
| |
And(IEnumerableIMongoQuery) |
Tests that all the queries are true (see $and in newer versions of the server).
| |
BitsAllClear |
Tests that the value of the named element has all of the specified bits clear.
| |
BitsAllSet |
Tests that the value of the named element has all of the specified bits set.
| |
BitsAnyClear |
Tests that the value of the named element has any of the specified bits clear.
| |
BitsAnySet |
Tests that the value of the named element has any of the specified bits set.
| |
Create(BsonDocument) |
Creates a query manually.
| |
Create(String, BsonValue) |
Creates a query manually.
| |
ElemMatch |
Tests that at least one item of the named array element matches a query (see $elemMatch).
| |
EQ |
Tests that the value of the named element is equal to some value.
| |
Exists |
Tests that an element of that name exists (see $exists).
| |
GeoIntersectsTCoordinates |
Tests that a location element specified by name intersects with the geometry (see $geoIntersects).
| |
GT |
Tests that the value of the named element is greater than some value (see $gt).
| |
GTE |
Tests that the value of the named element is greater than or equal to some value (see $gte).
| |
In |
Tests that the value of the named element is equal to one of a list of values (see $in).
| |
LT |
Tests that the value of the named element is less than some value (see $lt).
| |
LTE |
Tests that the value of the named element is less than or equal to some value (see $lte).
| |
Matches |
Tests that the value of the named element matches a regular expression (see $regex).
| |
Mod |
Tests that the modulus of the value of the named element matches some value (see $mod).
| |
NE |
Tests that an element does not equal the value (see $ne).
| |
Near(String, Double, Double) |
Tests that the value of the named element is near some location (see $near).
| |
Near(String, Double, Double, Double) |
Tests that the value of the named element is near some location (see $near).
| |
Near(String, Double, Double, Double, Boolean) |
Tests that the value of the named element is near some location (see $near).
| |
NearTCoordinates(String, GeoJsonPointTCoordinates) |
Tests that the value of the named element is near a point (see $near).
| |
NearTCoordinates(String, GeoJsonPointTCoordinates, Double) |
Tests that the value of the named element is near some location (see $near).
| |
NearTCoordinates(String, GeoJsonPointTCoordinates, Double, Boolean) |
Tests that the value of the named element is near some location (see $near).
| |
Not |
Tests that the inverse of the query is true (see $not).
| |
NotExists |
Tests that an element of that name does not exist (see $exists).
| |
NotIn |
Tests that the value of the named element is not equal to any item in a list of values (see $nin).
| |
Or(IMongoQuery) |
Tests that at least one of the subqueries is true (see $or).
| |
Or(IEnumerableIMongoQuery) |
Tests that at least one of the subqueries is true (see $or).
| |
Size |
Tests that the size of the named array is equal to some value (see $size).
| |
SizeGreaterThan |
Tests that the size of the named array is greater than some value.
| |
SizeGreaterThanOrEqual |
Tests that the size of the named array is greater than or equal to some value.
| |
SizeLessThan |
Tests that the size of the named array is less than some value.
| |
SizeLessThanOrEqual |
Tests that the size of the named array is less than or equal to some value.
| |
Text(String) |
Generate a text search query that tests whether the given search string is present.
| |
Text(String, TextSearchOptions) |
Generate a text search query that tests whether the given search string is present using the specified language's rules.
Specifies use of language appropriate stop words, stemming rules etc.
| |
Text(String, String) |
Generate a text search query that tests whether the given search string is present using the specified language's rules.
Specifies use of language appropriate stop words, stemming rules etc.
| |
Type(String, BsonType) |
Tests that the type of the named element is equal to some type (see $type).
| |
Type(String, String) |
Tests that the type of the named element is equal to some type (see $type).
| |
Where |
Tests that a JavaScript expression is true (see $where).
| |
WithinTCoordinates |
Tests that the value of the named element is within the specified geometry (see $within).
| |
WithinCircle(String, Double, Double, Double) |
Tests that the value of the named element is within a circle (see $within and $center).
| |
WithinCircle(String, Double, Double, Double, Boolean) |
Tests that the value of the named element is within a circle (see $within and $center).
| |
WithinPolygon |
Tests that the value of the named element is within a polygon (see $within and $polygon).
| |
WithinRectangle |
Tests that the value of the named element is within a rectangle (see $within and $box).
|