The owning EntityManager of this query
The result class of this query
Readonly
entityThe owning EntityManager of this query
Readonly
resultThe result class of this query
Static
Readonly
MAX_Adds a contains all filter to the collection field
The collection must contain all the given values.
The resulting Query
http://docs.mongodb.org/manual/reference/operator/query/all/
The field to filter
Rest
...args: any[]The field value or values to filter
The collection must contains one of the given values
Adds a contains any filter to the collection field. Alias for in.
The resulting Query
The field to filter
Rest
...args: any[]The field value or values to filter
Execute the query that returns the matching objects count.
The total number of matched objects
Optional
doneCallback: CountCallbackCalled when the operation succeed.
Optional
failCallback: FailCallbackCalled when there is a server-side error
Adds a greater than or equal to filter to the field
Shorthand for greaterThanOrEqualTo.
The resulting Query
http://docs.mongodb.org/manual/reference/operator/query/gte/
The field to filter
The value used to filter
Adds a greater than or equal to filter to the field
The resulting Query
http://docs.mongodb.org/manual/reference/operator/query/gte/
The field to filter
The value used to filter
Adds a “in” filter to the field
The field value must be equal to one of the given values.
The resulting Query
The field to filter
Rest
...args: any[]The field value or values to filter
Adds an “in” filter to the field
The field value must be equal to one of the given values.
The resulting Query
The field to filter
Rest
...args: any[]The field value or values to filter
Adds a less than or equal to filter to the field
Shorthand for lessThanOrEqualTo.
The resulting Query
http://docs.mongodb.org/manual/reference/operator/query/lte/
The field to filter
The value used to filter
Adds a less than or equal to filter to the field
The resulting Query
http://docs.mongodb.org/manual/reference/operator/query/lte/
The field to filter
The value used to filter
Sets the limit of this query, i.e hox many objects should be returnd
The resulting Query
http://docs.mongodb.org/manual/reference/method/cursor.limit/
The limit of this query
Adds a regular expression filter to the field
The field value must matches the regular expression.
Note: Only anchored expressions (Expressions that starts with an ^) and the multiline flag are supported.
The resulting Query
http://docs.mongodb.org/manual/reference/operator/query/regex/
The field to filter
The regular expression of the filter
Adds a modulo filter to the field
The field value divided by divisor must be equal to the remainder.
The resulting Query
http://docs.mongodb.org/manual/reference/operator/query/mod/
The field to filter
The divisor of the modulo filter
The remainder of the modulo filter
Adds a geopoint based near filter to the GeoPoint field
The GeoPoint must be within the maximum distance to the given GeoPoint. Returns from nearest to farthest.
The resulting Query
http://docs.mongodb.org/manual/reference/operator/query/nearSphere/
The field to filter
The GeoPoint to filter
Tha maximum distance to filter in meters
Adds a “not in” filter to the field
The field value must not be equal to any of the given values.
The resulting Query
http://docs.mongodb.org/manual/reference/operator/query/nin/
The field to filter
Rest
...args: any[]The field value or values to filter
Sets the offset of the query, i.e. how many elements should be skipped
The resulting Query
http://docs.mongodb.org/manual/reference/method/cursor.skip/
The offset of this query
Execute the query and return the query results as a List
Note: All local unsaved changes on matching objects, will be discarded.
A promise that will be resolved with the query result as a list
Optional
options: ResultOptions | ResultListCallback<T>The query options
Optional
doneCallback: FailCallback | ResultListCallback<T>Called when the operation succeed.
Optional
failCallback: FailCallbackCalled when the operation failed.
Execute the query that returns a single result
Note: All local unsaved changes on the matched object, will be discarded.
A promise that will be resolved with the query result as a single result
Optional
options: ResultOptions | SingleResultCallback<T>The query options
Optional
doneCallback: FailCallback | SingleResultCallback<T>Called when the operation succeed.
Optional
failCallback: FailCallbackCalled when the operation failed.
Adds a size filter to the collection field
The collection must have exactly size members.
The resulting Query
http://docs.mongodb.org/manual/reference/operator/query/size/
The field to filter
The collections size to filter
Sets the sort of the query and discard all existing paramaters
The resulting Query
http://docs.mongodb.org/manual/reference/method/cursor.sort/
The new sort of the query which is an object whose keys are fields and the values are either +1 for ascending order or -1 for descending order
Adds a GeoPoint based polygon filter to the GeoPoint field
The GeoPoint must be contained within the given polygon.
The resulting Query
http://docs.mongodb.org/manual/reference/operator/query/geoWithin/
Generated using TypeDoc
An abstract Query which allows retrieving results