Find Iterable
Iterable like implementation for find operations.
Parameters
The type of the result.
See also
Functions
Enables writing to temporary files on the server. When set to true, the server can write temporary data to disk while executing the find operation.
Sets the number of documents to return per batch.
Sets the collation options
Sets the comment for this operation. A null value means no comment is set.
Returns a cursor used for iterating over elements of type `T. The cursor is primarily used for change streams.
Sets the cursor type.
Sets the query filter to apply to the query.
Sets the hint for which index to use. A null value means no hint is set.
Sets the hint to apply.
Add top-level variables to the operation. A null value means no variables are set.
Sets the limit to apply.
Sets the exclusive upper bound for a specific index. A null value means no max is set.
The maximum amount of time for the server to wait on new documents to satisfy a tailable cursor query. This only applies to a TAILABLE_AWAIT cursor. When the cursor is not a TAILABLE_AWAIT cursor, this option is ignored.
Sets the minimum inclusive lower bound for a specific index. A null value means no max is set.
The server normally times out idle cursors after an inactivity period (10 minutes) to prevent excess memory use. Set this option to prevent that.
Get partial results from a sharded cluster if one or more shards are unreachable (instead of throwing an error).
Sets a document describing the fields to return for all matching documents.
Sets the returnKey. If true the find operation will return only the index keys in the resulting documents.
Sets the showRecordId. Set to true to add a field $recordId
to the returned documents.
Sets the number of documents to skip.
Sets the sort criteria to apply to the query.
Sets the timeoutMode for the cursor.
Appends all elements to the given destination collection.