Returns a cursor for iterating over the items in the given collection that match the query criteria.
The source collection to search through.
Optionalprojection: Projection<R>An optional object specifying fields to include or exclude in the returned items.
A Cursor instance for iterating over the matching items.
Tests whether the given object satisfies all compiled predicates.
The object to be tested against the compiled predicates.
true if the object satisfies all predicates, otherwise false.
Represents a query object used to filter and match documents based on specified criteria. All query, projection, and related expression operators are preloaded into the context by default.
Example