Toggles AwaitData: Block a little while waiting for more data instead of returning immediately if no data.
Toggles AwaitData: Block a little while waiting for more data instead of returning immediately if no data. Use along with TailableCursor.
Sets an upper limit on the number of documents to retrieve per batch.
Sets an upper limit on the number of documents to retrieve per batch. Defaults to 0 (meaning no upper limit - MongoDB decides).
the upper limit on the number of documents to retrieve per batch.
Toggles Exhaust
Sets the query flags.
the query flags
Toggles NoCursorTimeout: The cursor will not expire automatically
Toggles OplogReplay
Toggles Partial: The response can be partial - if a shard is down, no error will be thrown.
Sets the number of documents to skip.
the number of documents to skip.
Toggles SlaveOk: The query is might be run on a secondary.
Toggles TailableCursor: Makes the cursor not to close after all the data is consumed.
A helper to make the query options. You may use the methods to set the fields of this class, or set them directly.
the number of documents to skip.
the upper limit on the number of documents to retrieve per batch.
the query flags