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.
An implicit Reader[T]
must be present in the scope.
The ReadPreference for this request. If the ReadPreference implies that this request might be run on a Secondary, the slaveOk flag will be set.
Sets the hint document (a document that declares the index MongoDB should use for this query).
Sends this query and gets a future Option[T]
.
Sends this query and gets a future Option[T]
.
An implicit Reader[T]
must be present in the scope.
The ReadPreference for this request. If the ReadPreference implies that this request might be run on a Secondary, the slaveOk flag will be set.
Sends this query and gets a future Option[T]
.
Sends this query and gets a future Option[T]
.
An implicit Reader[T]
must be present in the scope.
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 query (the selector document).
The type of the query. An implicit Writer[Qry]
typeclass for handling it has to be in the scope.
Toggles snapshot mode.
Sets the sorting document.
Sends this query and gets a Cursor of instances of T
.
A builder that helps to make a fine-tuned query to MongoDB.
When the query is ready, you can call
cursor
to get a Cursor, orone
if you want to retrieve just one document.