Find Flow
Parameters
Types
Functions
Link copied to clipboard
Sets the cursor type.
Link copied to clipboard
Helper to return first result.
Link copied to clipboard
abstract fun maxAwaitTime(maxAwaitTime: Long, timeUnit: TimeUnit): FindFlow<TResult>
Content copied to clipboard
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.
Link copied to clipboard
abstract fun noCursorTimeout(noCursorTimeout: Boolean): FindFlow<TResult>
Content copied to clipboard
The server normally times out idle cursors after an inactivity period (10 minutes) to prevent excess memory use. Set this option to prevent that.
Link copied to clipboard
Users should not set this under normal circumstances.
Link copied to clipboard
Sets a document describing the fields to return for all matching documents.
Link copied to clipboard
Sets the showRecordId. Set to true to add a field $recordId to the returned documents.