Cursor to iterate and perform filtering on matched objects. This object must not be used directly. A cursor may be obtaine from calling find() on an instance of Query.
find()
Query
The input source of the collection
A predicate function to test documents
A projection criteria
Options
Optional
Return remaining objects in the cursor as an array. This method exhausts the cursor
Specifies the collation for the cursor returned by the mingo.Query.find
mingo.Query.find
Returns the number of objects return in the cursor. This method exhausts the cursor
Applies a JavaScript function for every document in a cursor.
Returns true if the cursor has documents and can be iterated.
Constrains the size of a cursor's result set.
the number of results to limit to.
Returns the cursor, so you can chain this call.
Applies a function to each document in a cursor and collects the return values in an array.
Returns the next document in a cursor.
Returns a cursor that begins returning results only after passing or skipping a number of documents.
the number of results to skip.
Returns results ordered according to a sort specification.
an object of key and values specifying the sort order. 1 for ascending and -1 for descending
Cursor to iterate and perform filtering on matched objects. This object must not be used directly. A cursor may be obtaine from calling
find()
on an instance ofQuery
.Param: collection
The input source of the collection
Param: predicate
A predicate function to test documents
Param: projection
A projection criteria
Param: options
Options