Adds a comment to this query, that may appear in the MongoDB logs.
Adds a comment to this query, that may appear in the MongoDB logs.
Makes a Cursor of this query, which can be enumerated.
Makes a Cursor of this query, which can be enumerated.
the results type
The reactivemongo.api.ReadPreference for this query. If the ReadPreference
implies that this query can be run on a secondary, the slaveOk flag will be set.
the reader for the results type
Toggles explain mode.
Toggles explain mode.
Sets the hint document (a document that declares the index MongoDB should use for this query).
Sets the hint document (a document that declares the index MongoDB should use for this query).
Adds maxTimeMs to query https://docs.mongodb.org/v3.0/reference/operator/meta/maxTimeMS/
Adds maxTimeMs to query https://docs.mongodb.org/v3.0/reference/operator/meta/maxTimeMS/
Sends this query and gets a future Option[T]
(alias for reactivemongo.api.Cursor.headOption).
Sends this query and gets a future Option[T]
(alias for reactivemongo.api.Cursor.headOption).
the results type
The reactivemongo.api.ReadPreference for this query. If the ReadPreference
implies that this query can be run on a secondary, the slaveOk flag will be set.
the reader for the results type
Sends this query and gets a future Option[T]
(alias for reactivemongo.api.Cursor.headOption).
Sends this query and gets a future Option[T]
(alias for reactivemongo.api.Cursor.headOption).
the results type
the reader for the results type
Sets the projection document (for retrieving only a subset of fields).
Sets the projection document (for retrieving only a subset of fields).
Sets the projection document (for retrieving only a subset of fields).
Sets the projection document (for retrieving only a subset of fields).
The type of the projection. An implicit Writer[Pjn]
typeclass for handling it has to be in the scope.
Sets the query (the selector document).
Sets the query (the selector document).
Sets the selector document.
Sets the selector document.
The type of the query. An implicit Writer[Qry]
typeclass for handling it has to be in the scope.
Sends this query and gets a future T
(alias for reactivemongo.api.Cursor.head).
Sends this query and gets a future T
(alias for reactivemongo.api.Cursor.head).
the results type
The reactivemongo.api.ReadPreference for this query. If the ReadPreference
implies that this query can be run on a secondary, the slaveOk flag will be set.
the reader for the results type
Sends this query and gets a future T
(alias for reactivemongo.api.Cursor.head).
Sends this query and gets a future T
(alias for reactivemongo.api.Cursor.head).
the results type
the reader for the results type
Toggles snapshot mode.
Toggles snapshot mode.
Sets the sorting document.
Sets the sorting document.
Returns a builder with the options updated.
Returns a builder with the options updated.
Sends this query and gets a Cursor of instances of T
.
Sends this query and gets a Cursor of instances of T
.
(Since version 0.11.0) Use cursor()
or cursor(readPreference)