Returns a cursor for iterating over the items in the given collection that match the query criteria.
The type of the items in the resulting cursor.
The source collection to search through.
Optional
An optional object specifying fields to include or exclude in the returned items.
A Cursor instance for iterating over the matching items.
Cursor
Tests whether the given object satisfies all compiled predicates.
The type of the object to test.
The object to be tested against the compiled predicates.
true if the object satisfies all predicates, otherwise false.
true
false
Returns a cursor for iterating over the items in the given collection that match the query criteria.