reactivemongo.api.collections.default
Gets another implementation of this collection.
Gets another implementation of this collection. An implicit CollectionProducer[C] must be present in the scope, or it will be the default implementation (reactivemongo.api.collections.default.BSONCollection).
Overrides the default strategy.
Converts this collection to a capped one.
Converts this collection to a capped one.
The size of this capped collection, in bytes.
The maximum number of documents this capped collection can contain.
Creates this collection.
Creates this collection.
The returned future will be completed with an error if this collection already exists.
States if should automatically add an index on the _id field. By default, regular collections will have an indexed _id field, in contrast to capped collections.
Creates this collection as a capped one.
Creates this collection as a capped one.
The returned future will be completed with an error if this collection already exists.
States if should automatically add an index on the _id field. By default, capped collections will NOT have an indexed _id field, in contrast to regular collections.
The database which this collection belong to.
The database which this collection belong to.
Drops this collection.
Drops this collection.
The returned future will be completed with an error if this collection does not exist.
The default failover strategy for the methods of this collection.
The default failover strategy for the methods of this collection.
Find the documents matching the given criteria.
Find the documents matching the given criteria.
This method accepts any query and projection object, provided that there is an implicit Writer[S]
typeclass for handling them in the scope.
Please take a look to the mongodb documentation to know how querying works.
the type of the selector (the query). An implicit Writer[S]
typeclass for handling it has to be in the scope.
the type of the projection object. An implicit Writer[P]
typeclass for handling it has to be in the scope.
Get only a subset of each matched documents. Defaults to None.
a GenericQueryBuilder that you can use to to customize the query. You can obtain a cursor by calling the method reactivemongo.api.Cursor on this query builder.
Find the documents matching the given criteria.
Find the documents matching the given criteria.
This method accepts any query and projection object, provided that there is an implicit Writer[S]
typeclass for handling them in the scope.
Please take a look to the mongodb documentation to know how querying works.
the type of the selector (the query). An implicit Writer[S]
typeclass for handling it has to be in the scope.
a GenericQueryBuilder that you can use to to customize the query. You can obtain a cursor by calling the method reactivemongo.api.Cursor on this query builder.
Gets the full qualified name of this collection.
Gets the full qualified name of this collection.
Returns an index manager for this collection.
Returns an index manager for this collection.
Inserts a document into the collection and wait for the reactivemongo.core.commands.LastError result.
Inserts a document into the collection and wait for the reactivemongo.core.commands.LastError result.
the document to insert.
a future reactivemongo.core.commands.LastError that can be used to check whether the insertion was successful.
Inserts a document into the collection and wait for the reactivemongo.core.commands.LastError result.
Inserts a document into the collection and wait for the reactivemongo.core.commands.LastError result.
Please read the documentation about reactivemongo.core.commands.GetLastError to know how to use it properly.
the document to insert.
the reactivemongo.core.commands.GetLastError command message to send in order to control how the document is inserted. Defaults to GetLastError().
a future reactivemongo.core.commands.LastError that can be used to check whether the insertion was successful.
Inserts a document into the collection and wait for the reactivemongo.core.commands.LastError result.
Inserts a document into the collection and wait for the reactivemongo.core.commands.LastError result.
Please read the documentation about reactivemongo.core.commands.GetLastError to know how to use it properly.
the type of the document to insert. An implicit Writer[T]
typeclass for handling it has to be in the scope.
the document to insert.
the reactivemongo.core.commands.GetLastError command message to send in order to control how the document is inserted. Defaults to GetLastError().
a future reactivemongo.core.commands.LastError that can be used to check whether the insertion was successful.
The name of the collection.
The name of the collection.
Remove the matched document(s) from the collection and wait for the reactivemongo.core.commands.LastError result.
Remove the matched document(s) from the collection and wait for the reactivemongo.core.commands.LastError result.
Please read the documentation about reactivemongo.core.commands.GetLastError to know how to use it properly.
the type of the selector of documents to remove. An implicit Writer[T]
typeclass for handling it has to be in the scope.
the selector of documents to remove.
the reactivemongo.core.commands.GetLastError command message to send in order to control how the documents are removed. Defaults to GetLastError().
states whether only the first matched documents has to be removed from this collection.
a future reactivemongo.core.commands.LastError that can be used to check whether the removal was successful.
Renames this collection.
Renames this collection.
The new name of this collection.
If a collection of name to
already exists, then drops that collection before renaming this one.
Inserts the document, or updates it if it already exists in the collection.
Inserts the document, or updates it if it already exists in the collection.
The document to save.
the reactivemongo.core.commands.GetLastError command message to send in order to control how the document is inserted. Defaults to GetLastError().
Inserts the document, or updates it if it already exists in the collection.
Inserts the document, or updates it if it already exists in the collection.
The document to save.
the reactivemongo.core.commands.GetLastError command message to send in order to control how the document is inserted. Defaults to GetLastError().
Inserts the document, or updates it if it already exists in the collection.
Inserts the document, or updates it if it already exists in the collection.
The document to save.
Gets another collection in the current database.
Gets another collection in the current database. An implicit CollectionProducer[C] must be present in the scope, or it will be the default implementation (reactivemongo.api.collections.default.BSONCollection).
The other collection name.
Overrides the default strategy.
Returns various information about this collection.
Returns various information about this collection.
A scale factor (for example, to get all the sizes in kilobytes).
Returns various information about this collection.
Returns various information about this collection.
Inserts a document into the collection without writeConcern.
Inserts a document into the collection without writeConcern.
Please note that you cannot be sure that the document has been effectively written and when (hence the Unit return type).
the type of the document to insert. An implicit Writer[T]
typeclass for handling it has to be in the scope.
the document to insert.
Remove the matched document(s) from the collection without writeConcern.
Remove the matched document(s) from the collection without writeConcern.
Please note that you cannot be sure that the matched documents have been effectively removed and when (hence the Unit return type).
the type of the selector of documents to remove. An implicit Writer[T]
typeclass for handling it has to be in the scope.
the selector of documents to remove.
states whether only the first matched documents has to be removed from this collection.
Updates one or more documents matching the given selector with the given modifier or update object.
Updates one or more documents matching the given selector with the given modifier or update object.
Please note that you cannot be sure that the matched documents have been effectively updated and when (hence the Unit return type).
the type of the selector object. An implicit Writer[S]
typeclass for handling it has to be in the scope.
the type of the modifier or update object. An implicit Writer[U]
typeclass for handling it has to be in the scope.
the selector object, for finding the documents to update.
the modifier object (with special keys like $set) or replacement object.
states whether the update objet should be inserted if no match found. Defaults to false.
states whether the update may be done on all the matching documents.
Updates one or more documents matching the given selector with the given modifier or update object.
Updates one or more documents matching the given selector with the given modifier or update object.
the type of the selector object. An implicit Writer[S]
typeclass for handling it has to be in the scope.
the type of the modifier or update object. An implicit Writer[U]
typeclass for handling it has to be in the scope.
the selector object, for finding the documents to update.
the modifier object (with special keys like $set) or replacement object.
the reactivemongo.core.commands.GetLastError command message to send in order to control how the documents are updated. Defaults to GetLastError().
states whether the update objet should be inserted if no match found. Defaults to false.
states whether the update may be done on all the matching documents.
a future reactivemongo.core.commands.LastError that can be used to check whether the update was successful.
(bSONCollection: StringAdd).self
(bSONCollection: StringFormat).self
If this collection is capped, removes all the documents it contains.
If this collection is capped, removes all the documents it contains.
Deprecated because it became an internal command, unavailable by default.
(Since version 0.9) Deprecated because emptyCapped became an internal command, unavailable by default.
(bSONCollection: ArrowAssoc[BSONCollection]).x
(Since version 2.10.0) Use leftOfArrow
instead
(bSONCollection: Ensuring[BSONCollection]).x
(Since version 2.10.0) Use resultOfEnsuring
instead
The default implementation of Collection.