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.
Toggles explain mode.
Sets the hint document (a document that declares the index MongoDB should use for this query).
Adds maxTimeMs to query https://docs.
Adds maxTimeMs to query https://docs.mongodb.org/v3.0/reference/operator/meta/maxTimeMS/
Sends this query and gets a future Option[T]
.
Sends this query and gets a future Option[T]
.
Alias for .cursor[T](readPreference).headOption
.
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]
.
Alias for .cursor[T]().headOption
.
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.
(genericQueryBuilder: StringAdd).self
(genericQueryBuilder: StringFormat).self
Sends this query and gets a Cursor of instances of T
.
Sends this query and gets a Cursor of instances of T
.
An implicit Reader[T]
must be present in the scope.
(Since version 0.11.0) Use cursor
function with read preference.
(genericQueryBuilder: ArrowAssoc[GenericQueryBuilder[P]]).x
(Since version 2.10.0) Use leftOfArrow
instead
(genericQueryBuilder: Ensuring[GenericQueryBuilder[P]]).x
(Since version 2.10.0) Use resultOfEnsuring
instead
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.