| MongoDB C++ Driver 4.1.4
    | 
#include <mongocxx/v_noabi/mongocxx/collection.hpp>
A MongoDB collection.
Collections do not require or enforce a schema and documents inside of a collection can have different fields. While not a requirement, typically documents in a collection have a similar shape or related purpose.
| Public Member Functions | |
| collection () noexcept | |
| Default constructs a collection object. The collection is equivalent to the state of a moved from collection. The only valid actions to take with a default constructed collection are to assign to it, or destroy it. | |
| collection (collection &&) noexcept | |
| Move constructs a collection. | |
| collection (collection const &) | |
| Copy constructs a collection. | |
| ~collection () | |
| Destroys a collection. | |
| cursor | aggregate (client_session const &session, pipeline const &pipeline, options::aggregate const &options=options::aggregate()) | 
| Runs an aggregation framework pipeline against this collection. | |
| cursor | aggregate (pipeline const &pipeline, options::aggregate const &options=options::aggregate()) | 
| Runs an aggregation framework pipeline against this collection. | |
| template<typename container_type> | |
| bsoncxx::v_noabi::stdx::optional< result::bulk_write > | bulk_write (client_session const &session, container_type const &writes, options::bulk_write const &options=options::bulk_write()) | 
| Sends a container of writes to the server as a bulk write operation. | |
| template<typename write_model_iterator_type> | |
| bsoncxx::v_noabi::stdx::optional< result::bulk_write > | bulk_write (client_session const &session, write_model_iterator_type begin, write_model_iterator_type end, options::bulk_write const &options=options::bulk_write()) | 
| Sends writes starting at beginand ending atendto the server as a bulk write operation. | |
| template<typename container_type> | |
| bsoncxx::v_noabi::stdx::optional< result::bulk_write > | bulk_write (container_type const &writes, options::bulk_write const &options=options::bulk_write()) | 
| Sends a container of writes to the server as a bulk write operation. | |
| template<typename write_model_iterator_type> | |
| bsoncxx::v_noabi::stdx::optional< result::bulk_write > | bulk_write (write_model_iterator_type begin, write_model_iterator_type end, options::bulk_write const &options=options::bulk_write()) | 
| Sends writes starting at beginand ending atendto the server as a bulk write operation. | |
| std::int64_t | count_documents (bsoncxx::v_noabi::document::view_or_value filter, options::count const &options=options::count()) | 
| Counts the number of documents matching the provided filter. | |
| std::int64_t | count_documents (client_session const &session, bsoncxx::v_noabi::document::view_or_value filter, options::count const &options=options::count()) | 
| Counts the number of documents matching the provided filter. | |
| mongocxx::v_noabi::bulk_write | create_bulk_write (client_session const &session, options::bulk_write const &options={}) | 
| Creates a new bulk operation to be executed against this collection. The lifetime of the bulk_write is independent of the collection. | |
| mongocxx::v_noabi::bulk_write | create_bulk_write (options::bulk_write const &options={}) | 
| Creates a new bulk operation to be executed against this collection. The lifetime of the bulk_write is independent of the collection. | |
| bsoncxx::v_noabi::document::value | create_index (bsoncxx::v_noabi::document::view_or_value keys, bsoncxx::v_noabi::document::view_or_value index_options={}, options::index_view operation_options=options::index_view{}) | 
| Creates an index over the collection for the provided keys with the provided options. | |
| bsoncxx::v_noabi::document::value | create_index (client_session const &session, bsoncxx::v_noabi::document::view_or_value keys, bsoncxx::v_noabi::document::view_or_value index_options={}, options::index_view operation_options=options::index_view{}) | 
| Creates an index over the collection for the provided keys with the provided options. | |
| bsoncxx::v_noabi::stdx::optional< result::delete_result > | delete_many (bsoncxx::v_noabi::document::view_or_value filter, options::delete_options const &options=options::delete_options()) | 
| Deletes all matching documents from the collection. | |
| bsoncxx::v_noabi::stdx::optional< result::delete_result > | delete_many (client_session const &session, bsoncxx::v_noabi::document::view_or_value filter, options::delete_options const &options=options::delete_options()) | 
| Deletes all matching documents from the collection. | |
| bsoncxx::v_noabi::stdx::optional< result::delete_result > | delete_one (bsoncxx::v_noabi::document::view_or_value filter, options::delete_options const &options=options::delete_options()) | 
| Deletes a single matching document from the collection. | |
| bsoncxx::v_noabi::stdx::optional< result::delete_result > | delete_one (client_session const &session, bsoncxx::v_noabi::document::view_or_value filter, options::delete_options const &options=options::delete_options()) | 
| Deletes a single matching document from the collection. | |
| cursor | distinct (bsoncxx::v_noabi::string::view_or_value name, bsoncxx::v_noabi::document::view_or_value filter, options::distinct const &options=options::distinct()) | 
| Finds the distinct values for a specified field across the collection. | |
| cursor | distinct (client_session const &session, bsoncxx::v_noabi::string::view_or_value name, bsoncxx::v_noabi::document::view_or_value filter, options::distinct const &options=options::distinct()) | 
| Finds the distinct values for a specified field across the collection. | |
| void | drop (bsoncxx::v_noabi::stdx::optional< mongocxx::v_noabi::write_concern > const &write_concern={}, bsoncxx::v_noabi::document::view_or_value collection_options={}) | 
| Drops this collection and all its contained documents from the database. | |
| void | drop (client_session const &session, bsoncxx::v_noabi::stdx::optional< mongocxx::v_noabi::write_concern > const &write_concern={}, bsoncxx::v_noabi::document::view_or_value collection_options={}) | 
| Drops this collection and all its contained documents from the database. | |
| std::int64_t | estimated_document_count (options::estimated_document_count const &options=options::estimated_document_count()) | 
| Returns an estimate of the number of documents in the collection. | |
| cursor | find (bsoncxx::v_noabi::document::view_or_value filter, options::find const &options=options::find()) | 
| Finds the documents in this collection which match the provided filter. | |
| cursor | find (client_session const &session, bsoncxx::v_noabi::document::view_or_value filter, options::find const &options=options::find()) | 
| Finds the documents in this collection which match the provided filter. | |
| bsoncxx::v_noabi::stdx::optional< bsoncxx::v_noabi::document::value > | find_one (bsoncxx::v_noabi::document::view_or_value filter, options::find const &options=options::find()) | 
| Finds a single document in this collection that match the provided filter. | |
| bsoncxx::v_noabi::stdx::optional< bsoncxx::v_noabi::document::value > | find_one (client_session const &session, bsoncxx::v_noabi::document::view_or_value filter, options::find const &options=options::find()) | 
| Finds a single document in this collection that match the provided filter. | |
| bsoncxx::v_noabi::stdx::optional< bsoncxx::v_noabi::document::value > | find_one_and_delete (bsoncxx::v_noabi::document::view_or_value filter, options::find_one_and_delete const &options=options::find_one_and_delete()) | 
| Finds a single document matching the filter, deletes it, and returns the original. | |
| bsoncxx::v_noabi::stdx::optional< bsoncxx::v_noabi::document::value > | find_one_and_delete (client_session const &session, bsoncxx::v_noabi::document::view_or_value filter, options::find_one_and_delete const &options=options::find_one_and_delete()) | 
| Finds a single document matching the filter, deletes it, and returns the original. | |
| bsoncxx::v_noabi::stdx::optional< bsoncxx::v_noabi::document::value > | find_one_and_replace (bsoncxx::v_noabi::document::view_or_value filter, bsoncxx::v_noabi::document::view_or_value replacement, options::find_one_and_replace const &options=options::find_one_and_replace()) | 
| Finds a single document matching the filter, replaces it, and returns either the original or the replacement document. | |
| bsoncxx::v_noabi::stdx::optional< bsoncxx::v_noabi::document::value > | find_one_and_replace (client_session const &session, bsoncxx::v_noabi::document::view_or_value filter, bsoncxx::v_noabi::document::view_or_value replacement, options::find_one_and_replace const &options=options::find_one_and_replace()) | 
| Finds a single document matching the filter, replaces it, and returns either the original or the replacement document. | |
| bsoncxx::v_noabi::stdx::optional< bsoncxx::v_noabi::document::value > | find_one_and_update (bsoncxx::v_noabi::document::view_or_value filter, bsoncxx::v_noabi::document::view_or_value update, options::find_one_and_update const &options=options::find_one_and_update()) | 
| Finds a single document matching the filter, updates it, and returns either the original or the newly-updated document. | |
| bsoncxx::v_noabi::stdx::optional< bsoncxx::v_noabi::document::value > | find_one_and_update (bsoncxx::v_noabi::document::view_or_value filter, pipeline const &update, options::find_one_and_update const &options=options::find_one_and_update()) | 
| Finds a single document matching the filter, updates it, and returns either the original or the newly-updated document. | |
| bsoncxx::v_noabi::stdx::optional< bsoncxx::v_noabi::document::value > | find_one_and_update (bsoncxx::v_noabi::document::view_or_value filter, std::initializer_list< _empty_doc_tag > update, options::find_one_and_update const &options=options::find_one_and_update()) | 
| Finds a single document matching the filter, updates it, and returns either the original or the newly-updated document. | |
| bsoncxx::v_noabi::stdx::optional< bsoncxx::v_noabi::document::value > | find_one_and_update (client_session const &session, bsoncxx::v_noabi::document::view_or_value filter, bsoncxx::v_noabi::document::view_or_value update, options::find_one_and_update const &options=options::find_one_and_update()) | 
| Finds a single document matching the filter, updates it, and returns either the original or the newly-updated document. | |
| bsoncxx::v_noabi::stdx::optional< bsoncxx::v_noabi::document::value > | find_one_and_update (client_session const &session, bsoncxx::v_noabi::document::view_or_value filter, pipeline const &update, options::find_one_and_update const &options=options::find_one_and_update()) | 
| Finds a single document matching the filter, updates it, and returns either the original or the newly-updated document. | |
| bsoncxx::v_noabi::stdx::optional< bsoncxx::v_noabi::document::value > | find_one_and_update (client_session const &session, bsoncxx::v_noabi::document::view_or_value filter, std::initializer_list< _empty_doc_tag > update, options::find_one_and_update const &options=options::find_one_and_update()) | 
| Finds a single document matching the filter, updates it, and returns either the original or the newly-updated document. | |
| index_view | indexes () | 
| Gets an index_view to the collection. | |
| template<typename container_type> | |
| bsoncxx::v_noabi::stdx::optional< result::insert_many > | insert_many (client_session const &session, container_type const &container, options::insert const &options=options::insert()) | 
| Inserts multiple documents into the collection. If any of the documents are missing identifiers the driver will generate them. | |
| template<typename document_view_iterator_type> | |
| bsoncxx::v_noabi::stdx::optional< result::insert_many > | insert_many (client_session const &session, document_view_iterator_type begin, document_view_iterator_type end, options::insert const &options=options::insert()) | 
| Inserts multiple documents into the collection. If any of the documents are missing identifiers the driver will generate them. | |
| template<typename container_type> | |
| bsoncxx::v_noabi::stdx::optional< result::insert_many > | insert_many (container_type const &container, options::insert const &options=options::insert()) | 
| Inserts multiple documents into the collection. If any of the documents are missing identifiers the driver will generate them. | |
| template<typename document_view_iterator_type> | |
| bsoncxx::v_noabi::stdx::optional< result::insert_many > | insert_many (document_view_iterator_type begin, document_view_iterator_type end, options::insert const &options=options::insert()) | 
| Inserts multiple documents into the collection. If any of the documents are missing identifiers the driver will generate them. | |
| bsoncxx::v_noabi::stdx::optional< result::insert_one > | insert_one (bsoncxx::v_noabi::document::view_or_value document, options::insert const &options={}) | 
| Inserts a single document into the collection. If the document is missing an identifier ( _idfield) one will be generated for it. | |
| bsoncxx::v_noabi::stdx::optional< result::insert_one > | insert_one (client_session const &session, bsoncxx::v_noabi::document::view_or_value document, options::insert const &options={}) | 
| Inserts a single document into the collection. If the document is missing an identifier ( _idfield) one will be generated for it. | |
| cursor | list_indexes () const | 
| Returns a list of the indexes currently on this collection. | |
| cursor | list_indexes (client_session const &session) const | 
| Returns a list of the indexes currently on this collection. | |
| bsoncxx::v_noabi::stdx::string_view | name () const | 
| Returns the name of this collection. | |
| operator bool () const noexcept | |
| Returns true if the collection is valid, meaning it was not default constructed or moved from. | |
| collection & | operator= (collection &&) noexcept | 
| Move assigns a collection. | |
| collection & | operator= (collection const &) | 
| Copy assigns a collection. | |
| mongocxx::v_noabi::read_concern | read_concern () const | 
| Gets the read_concern for the collection. | |
| void | read_concern (mongocxx::v_noabi::read_concern rc) | 
| Sets the read_concern for this collection. Changes will not have any effect on existing cursors or other read operations which use the previously-set read concern. | |
| mongocxx::v_noabi::read_preference | read_preference () const | 
| Gets the read_preference for the collection. | |
| void | read_preference (mongocxx::v_noabi::read_preference rp) | 
| Sets the read_preference for this collection. Changes will not have any effect on existing cursors or other read operations which use the read preference. | |
| void | rename (bsoncxx::v_noabi::string::view_or_value new_name, bool drop_target_before_rename=false, bsoncxx::v_noabi::stdx::optional< write_concern > const &write_concern={}) | 
| Rename this collection. | |
| void | rename (client_session const &session, bsoncxx::v_noabi::string::view_or_value new_name, bool drop_target_before_rename=false, bsoncxx::v_noabi::stdx::optional< write_concern > const &write_concern={}) | 
| Rename this collection. | |
| bsoncxx::v_noabi::stdx::optional< result::replace_one > | replace_one (bsoncxx::v_noabi::document::view_or_value filter, bsoncxx::v_noabi::document::view_or_value replacement, options::replace const &options=options::replace{}) | 
| Replaces a single document matching the provided filter in this collection. | |
| bsoncxx::v_noabi::stdx::optional< result::replace_one > | replace_one (client_session const &session, bsoncxx::v_noabi::document::view_or_value filter, bsoncxx::v_noabi::document::view_or_value replacement, options::replace const &options=options::replace{}) | 
| Replaces a single document matching the provided filter in this collection. | |
| search_index_view | search_indexes () | 
| Gets a search_index_view to the collection. | |
| bsoncxx::v_noabi::stdx::optional< result::update > | update_many (bsoncxx::v_noabi::document::view_or_value filter, bsoncxx::v_noabi::document::view_or_value update, options::update const &options=options::update()) | 
| Updates multiple documents matching the provided filter in this collection. | |
| bsoncxx::v_noabi::stdx::optional< result::update > | update_many (bsoncxx::v_noabi::document::view_or_value filter, pipeline const &update, options::update const &options=options::update()) | 
| Updates multiple documents matching the provided filter in this collection. | |
| bsoncxx::v_noabi::stdx::optional< result::update > | update_many (bsoncxx::v_noabi::document::view_or_value filter, std::initializer_list< _empty_doc_tag > update, options::update const &options=options::update()) | 
| Updates multiple documents matching the provided filter in this collection. | |
| bsoncxx::v_noabi::stdx::optional< result::update > | update_many (client_session const &session, bsoncxx::v_noabi::document::view_or_value filter, bsoncxx::v_noabi::document::view_or_value update, options::update const &options=options::update()) | 
| Updates multiple documents matching the provided filter in this collection. | |
| bsoncxx::v_noabi::stdx::optional< result::update > | update_many (client_session const &session, bsoncxx::v_noabi::document::view_or_value filter, pipeline const &update, options::update const &options=options::update()) | 
| Updates multiple documents matching the provided filter in this collection. | |
| bsoncxx::v_noabi::stdx::optional< result::update > | update_many (client_session const &session, bsoncxx::v_noabi::document::view_or_value filter, std::initializer_list< _empty_doc_tag > update, options::update const &options=options::update()) | 
| Updates multiple documents matching the provided filter in this collection. | |
| bsoncxx::v_noabi::stdx::optional< result::update > | update_one (bsoncxx::v_noabi::document::view_or_value filter, bsoncxx::v_noabi::document::view_or_value update, options::update const &options=options::update()) | 
| Updates a single document matching the provided filter in this collection. | |
| bsoncxx::v_noabi::stdx::optional< result::update > | update_one (bsoncxx::v_noabi::document::view_or_value filter, pipeline const &update, options::update const &options=options::update()) | 
| Updates a single document matching the provided filter in this collection. | |
| bsoncxx::v_noabi::stdx::optional< result::update > | update_one (bsoncxx::v_noabi::document::view_or_value filter, std::initializer_list< _empty_doc_tag > update, options::update const &options=options::update()) | 
| Updates a single document matching the provided filter in this collection. | |
| bsoncxx::v_noabi::stdx::optional< result::update > | update_one (client_session const &session, bsoncxx::v_noabi::document::view_or_value filter, bsoncxx::v_noabi::document::view_or_value update, options::update const &options=options::update()) | 
| Updates a single document matching the provided filter in this collection. | |
| bsoncxx::v_noabi::stdx::optional< result::update > | update_one (client_session const &session, bsoncxx::v_noabi::document::view_or_value filter, pipeline const &update, options::update const &options=options::update()) | 
| Updates a single document matching the provided filter in this collection. | |
| bsoncxx::v_noabi::stdx::optional< result::update > | update_one (client_session const &session, bsoncxx::v_noabi::document::view_or_value filter, std::initializer_list< _empty_doc_tag > update, options::update const &options=options::update()) | 
| Updates a single document matching the provided filter in this collection. | |
| change_stream | watch (client_session const &session, options::change_stream const &options={}) | 
| change_stream | watch (client_session const &session, pipeline const &pipe, options::change_stream const &options={}) | 
| Gets a change stream on this collection. | |
| change_stream | watch (options::change_stream const &options={}) | 
| Gets a change stream on this collection with an empty pipeline. Change streams are only supported with a "majority" read concern or no read concern. | |
| change_stream | watch (pipeline const &pipe, options::change_stream const &options={}) | 
| Gets a change stream on this collection. Change streams are only supported with a "majority" read concern or no read concern. | |
| bsoncxx::v_noabi::stdx::optional< result::bulk_write > | write (client_session const &session, model::write const &write, options::bulk_write const &options=options::bulk_write()) | 
| Sends a write to the server as a bulk write operation. | |
| bsoncxx::v_noabi::stdx::optional< result::bulk_write > | write (model::write const &write, options::bulk_write const &options=options::bulk_write()) | 
| Sends a write to the server as a bulk write operation. | |
| mongocxx::v_noabi::write_concern | write_concern () const | 
| Gets the write_concern for the collection. | |
| void | write_concern (mongocxx::v_noabi::write_concern wc) | 
| Sets the write_concern for this collection. Changes will not have any effect on existing write operations. | |
| 
 | noexcept | 
Default constructs a collection object. The collection is equivalent to the state of a moved from collection. The only valid actions to take with a default constructed collection are to assign to it, or destroy it.
| 
 | noexcept | 
Move constructs a collection.
| mongocxx::v_noabi::collection::collection | ( | collection const & | ) | 
Copy constructs a collection.
| mongocxx::v_noabi::collection::~collection | ( | ) | 
Destroys a collection.
| cursor mongocxx::v_noabi::collection::aggregate | ( | client_session const & | session, | 
| pipeline const & | pipeline, | ||
| options::aggregate const & | options = options::aggregate() ) | 
Runs an aggregation framework pipeline against this collection.
| session | The mongocxx::v_noabi::client_session with which to perform the aggregation. | 
| pipeline | The pipeline of aggregation operations to perform. | 
| options | Optional arguments, see mongocxx::v_noabi::options::aggregate. | 
| cursor mongocxx::v_noabi::collection::aggregate | ( | pipeline const & | pipeline, | 
| options::aggregate const & | options = options::aggregate() ) | 
Runs an aggregation framework pipeline against this collection.
| pipeline | The pipeline of aggregation operations to perform. | 
| options | Optional arguments, see mongocxx::v_noabi::options::aggregate. | 
| 
 | inline | 
Sends a container of writes to the server as a bulk write operation.
| container_type | The container type. Must meet the requirements for the container concept with a value type of model::write. | 
| session | The mongocxx::v_noabi::client_session with which to perform the bulk operation. | 
| writes | A container of model::write. | 
| options | Optional arguments, see options::bulk_write. | 
| mongocxx::v_noabi::bulk_write_exception | when there are errors processing the writes. | 
| 
 | inline | 
Sends writes starting at begin and ending at end to the server as a bulk write operation. 
| write_model_iterator_type | The container type. Must meet the requirements for the input iterator concept with a value type of model::write. | 
| session | The mongocxx::v_noabi::client_session with which to perform the bulk operation. | 
| begin | Iterator pointing to the first model::write to send. | 
| end | Iterator pointing to the end of the writes to send. | 
| options | Optional arguments, see options::bulk_write. | 
| mongocxx::v_noabi::bulk_write_exception | when there are errors processing the writes. | 
| 
 | inline | 
Sends a container of writes to the server as a bulk write operation.
| container_type | The container type. Must meet the requirements for the container concept with a value type of model::write. | 
| writes | A container of model::write. | 
| options | Optional arguments, see options::bulk_write. | 
| mongocxx::v_noabi::bulk_write_exception | when there are errors processing the writes. | 
| 
 | inline | 
Sends writes starting at begin and ending at end to the server as a bulk write operation. 
| write_model_iterator_type | The container type. Must meet the requirements for the input iterator concept with a value type of model::write. | 
| begin | Iterator pointing to the first model::write to send. | 
| end | Iterator pointing to the end of the writes to send. | 
| options | Optional arguments, see options::bulk_write. | 
| mongocxx::v_noabi::bulk_write_exception | when there are errors processing the writes. | 
| std::int64_t mongocxx::v_noabi::collection::count_documents | ( | bsoncxx::v_noabi::document::view_or_value | filter, | 
| options::count const & | options = options::count() ) | 
Counts the number of documents matching the provided filter.
| filter | The filter that documents must match in order to be counted. | 
| options | Optional arguments, see mongocxx::v_noabi::options::count. | 
| mongocxx::v_noabi::query_exception | if the count operation fails. | 
| std::int64_t mongocxx::v_noabi::collection::count_documents | ( | client_session const & | session, | 
| bsoncxx::v_noabi::document::view_or_value | filter, | ||
| options::count const & | options = options::count() ) | 
Counts the number of documents matching the provided filter.
| session | The mongocxx::v_noabi::client_session with which to perform the count. | 
| filter | The filter that documents must match in order to be counted. | 
| options | Optional arguments, see mongocxx::v_noabi::options::count. | 
| mongocxx::v_noabi::query_exception | if the count operation fails. | 
| mongocxx::v_noabi::bulk_write mongocxx::v_noabi::collection::create_bulk_write | ( | client_session const & | session, | 
| options::bulk_write const & | options = {} ) | 
Creates a new bulk operation to be executed against this collection. The lifetime of the bulk_write is independent of the collection.
| session | The mongocxx::v_noabi::client_session with which to perform the bulk operation. | 
| options | Optional arguments; see mongocxx::v_noabi::options::bulk_write. | 
| mongocxx::v_noabi::bulk_write mongocxx::v_noabi::collection::create_bulk_write | ( | options::bulk_write const & | options = {} | ) | 
Creates a new bulk operation to be executed against this collection. The lifetime of the bulk_write is independent of the collection.
| options | Optional arguments; see mongocxx::v_noabi::options::bulk_write. | 
| bsoncxx::v_noabi::document::value mongocxx::v_noabi::collection::create_index | ( | bsoncxx::v_noabi::document::view_or_value | keys, | 
| bsoncxx::v_noabi::document::view_or_value | index_options = {}, | ||
| options::index_view | operation_options = options::index_view{} ) | 
Creates an index over the collection for the provided keys with the provided options.
| keys | The keys for the index: {a:1, b: -1} | 
| index_options | A document containing optional arguments for creating the index. | 
| operation_options | Optional arguments for the overall operation, see mongocxx::v_noabi::options::index_view. | 
| mongocxx::v_noabi::operation_exception | if index creation fails. | 
| bsoncxx::v_noabi::document::value mongocxx::v_noabi::collection::create_index | ( | client_session const & | session, | 
| bsoncxx::v_noabi::document::view_or_value | keys, | ||
| bsoncxx::v_noabi::document::view_or_value | index_options = {}, | ||
| options::index_view | operation_options = options::index_view{} ) | 
Creates an index over the collection for the provided keys with the provided options.
| session | The mongocxx::v_noabi::client_session with which to perform the index creation. | 
| keys | The keys for the index: {a:1, b: -1} | 
| index_options | A document containing optional arguments for creating the index. | 
| operation_options | Optional arguments for the overall operation, see mongocxx::v_noabi::options::index_view. | 
| mongocxx::v_noabi::operation_exception | if index creation fails. | 
| bsoncxx::v_noabi::stdx::optional< result::delete_result > mongocxx::v_noabi::collection::delete_many | ( | bsoncxx::v_noabi::document::view_or_value | filter, | 
| options::delete_options const & | options = options::delete_options() ) | 
Deletes all matching documents from the collection.
| filter | Document view representing the data to be deleted. | 
| options | Optional arguments, see mongocxx::v_noabi::options::delete_options. | 
| mongocxx::v_noabi::bulk_write_exception | if the delete fails. | 
| bsoncxx::v_noabi::stdx::optional< result::delete_result > mongocxx::v_noabi::collection::delete_many | ( | client_session const & | session, | 
| bsoncxx::v_noabi::document::view_or_value | filter, | ||
| options::delete_options const & | options = options::delete_options() ) | 
Deletes all matching documents from the collection.
| session | The mongocxx::v_noabi::client_session with which to perform the deletion. | 
| filter | Document view representing the data to be deleted. | 
| options | Optional arguments, see mongocxx::v_noabi::options::delete_options. | 
| mongocxx::v_noabi::bulk_write_exception | if the delete fails. | 
| bsoncxx::v_noabi::stdx::optional< result::delete_result > mongocxx::v_noabi::collection::delete_one | ( | bsoncxx::v_noabi::document::view_or_value | filter, | 
| options::delete_options const & | options = options::delete_options() ) | 
Deletes a single matching document from the collection.
| filter | Document view representing the data to be deleted. | 
| options | Optional arguments, see mongocxx::v_noabi::options::delete_options. | 
| mongocxx::v_noabi::bulk_write_exception | if the delete fails. | 
| bsoncxx::v_noabi::stdx::optional< result::delete_result > mongocxx::v_noabi::collection::delete_one | ( | client_session const & | session, | 
| bsoncxx::v_noabi::document::view_or_value | filter, | ||
| options::delete_options const & | options = options::delete_options() ) | 
Deletes a single matching document from the collection.
| session | The mongocxx::v_noabi::client_session with which to perform the deletion. | 
| filter | Document view representing the data to be deleted. | 
| options | Optional arguments, see mongocxx::v_noabi::options::delete_options. | 
| mongocxx::v_noabi::bulk_write_exception | if the delete fails. | 
| cursor mongocxx::v_noabi::collection::distinct | ( | bsoncxx::v_noabi::string::view_or_value | name, | 
| bsoncxx::v_noabi::document::view_or_value | filter, | ||
| options::distinct const & | options = options::distinct() ) | 
Finds the distinct values for a specified field across the collection.
| name | The field for which the distinct values will be found. | 
| filter | Document view representing the documents for which the distinct operation will apply. | 
| options | Optional arguments, see options::distinct. | 
| cursor mongocxx::v_noabi::collection::distinct | ( | client_session const & | session, | 
| bsoncxx::v_noabi::string::view_or_value | name, | ||
| bsoncxx::v_noabi::document::view_or_value | filter, | ||
| options::distinct const & | options = options::distinct() ) | 
Finds the distinct values for a specified field across the collection.
| session | The mongocxx::v_noabi::client_session with which to perform the operation. | 
| name | The field for which the distinct values will be found. | 
| filter | Document view representing the documents for which the distinct operation will apply. | 
| options | Optional arguments, see options::distinct. | 
| void mongocxx::v_noabi::collection::drop | ( | bsoncxx::v_noabi::stdx::optional< mongocxx::v_noabi::write_concern > const & | write_concern = {}, | 
| bsoncxx::v_noabi::document::view_or_value | collection_options = {} ) | 
Drops this collection and all its contained documents from the database.
| write_concern | (optional) The write concern to use for this operation. Defaults to the collection wide write concern if none is provided. | 
| collection_options | (optional) Collection options to use for this operation. | 
| mongocxx::v_noabi::operation_exception | if the operation fails. | 
| void mongocxx::v_noabi::collection::drop | ( | client_session const & | session, | 
| bsoncxx::v_noabi::stdx::optional< mongocxx::v_noabi::write_concern > const & | write_concern = {}, | ||
| bsoncxx::v_noabi::document::view_or_value | collection_options = {} ) | 
Drops this collection and all its contained documents from the database.
| session | The mongocxx::v_noabi::client_session with which to perform the drop. | 
| write_concern | (optional) The write concern to use for this operation. Defaults to the collection wide write concern if none is provided. | 
| collection_options | (optional) Collection options to use for this operation. | 
| mongocxx::v_noabi::operation_exception | if the operation fails. | 
| std::int64_t mongocxx::v_noabi::collection::estimated_document_count | ( | options::estimated_document_count const & | options = options::estimated_document_count() | ) | 
Returns an estimate of the number of documents in the collection.
| options | Optional arguments, see mongocxx::v_noabi::options::count. | 
| mongocxx::v_noabi::query_exception | if the count operation fails. | 
| cursor mongocxx::v_noabi::collection::find | ( | bsoncxx::v_noabi::document::view_or_value | filter, | 
| options::find const & | options = options::find() ) | 
Finds the documents in this collection which match the provided filter.
| filter | Document view representing a document that should match the query. | 
| options | Optional arguments, see options::find | 
| mongocxx::v_noabi::logic_error | if the options are invalid, or if the unsupported option modifiers "$query" or "$explain" are used. | 
| cursor mongocxx::v_noabi::collection::find | ( | client_session const & | session, | 
| bsoncxx::v_noabi::document::view_or_value | filter, | ||
| options::find const & | options = options::find() ) | 
Finds the documents in this collection which match the provided filter.
| session | The mongocxx::v_noabi::client_session with which to perform the query. | 
| filter | Document view representing a document that should match the query. | 
| options | Optional arguments, see options::find | 
| mongocxx::v_noabi::logic_error | if the options are invalid, or if the unsupported option modifiers "$query" or "$explain" are used. | 
| bsoncxx::v_noabi::stdx::optional< bsoncxx::v_noabi::document::value > mongocxx::v_noabi::collection::find_one | ( | bsoncxx::v_noabi::document::view_or_value | filter, | 
| options::find const & | options = options::find() ) | 
Finds a single document in this collection that match the provided filter.
| filter | Document view representing a document that should match the query. | 
| options | Optional arguments, see options::find | 
| mongocxx::v_noabi::query_exception | if the operation fails. | 
| bsoncxx::v_noabi::stdx::optional< bsoncxx::v_noabi::document::value > mongocxx::v_noabi::collection::find_one | ( | client_session const & | session, | 
| bsoncxx::v_noabi::document::view_or_value | filter, | ||
| options::find const & | options = options::find() ) | 
Finds a single document in this collection that match the provided filter.
| session | The mongocxx::v_noabi::client_session with which to perform the query. | 
| filter | Document view representing a document that should match the query. | 
| options | Optional arguments, see options::find | 
| mongocxx::v_noabi::query_exception | if the operation fails. | 
| bsoncxx::v_noabi::stdx::optional< bsoncxx::v_noabi::document::value > mongocxx::v_noabi::collection::find_one_and_delete | ( | bsoncxx::v_noabi::document::view_or_value | filter, | 
| options::find_one_and_delete const & | options = options::find_one_and_delete() ) | 
Finds a single document matching the filter, deletes it, and returns the original.
| filter | Document view representing a document that should be deleted. | 
| options | Optional arguments, see options::find_one_and_delete | 
| Throws | mongocxx::v_noabi::logic_error if the collation option is specified and an unacknowledged write concern is used. | 
| Throws | mongocxx::v_noabi::write_exception if the operation fails. | 
| bsoncxx::v_noabi::stdx::optional< bsoncxx::v_noabi::document::value > mongocxx::v_noabi::collection::find_one_and_delete | ( | client_session const & | session, | 
| bsoncxx::v_noabi::document::view_or_value | filter, | ||
| options::find_one_and_delete const & | options = options::find_one_and_delete() ) | 
Finds a single document matching the filter, deletes it, and returns the original.
| session | The mongocxx::v_noabi::client_session with which to perform the operation. | 
| filter | Document view representing a document that should be deleted. | 
| options | Optional arguments, see options::find_one_and_delete | 
| Throws | mongocxx::v_noabi::logic_error if the collation option is specified and an unacknowledged write concern is used. | 
| Throws | mongocxx::v_noabi::write_exception if the operation fails. | 
| bsoncxx::v_noabi::stdx::optional< bsoncxx::v_noabi::document::value > mongocxx::v_noabi::collection::find_one_and_replace | ( | bsoncxx::v_noabi::document::view_or_value | filter, | 
| bsoncxx::v_noabi::document::view_or_value | replacement, | ||
| options::find_one_and_replace const & | options = options::find_one_and_replace() ) | 
Finds a single document matching the filter, replaces it, and returns either the original or the replacement document.
| filter | Document view representing a document that should be replaced. | 
| replacement | Document view representing the replacement for a matching document. | 
| options | Optional arguments, see options::find_one_and_replace. | 
| Throws | mongocxx::v_noabi::logic_error if the collation option is specified and an unacknowledged write concern is used. | 
| Throws | mongocxx::v_noabi::write_exception if the operation fails. | 
| bsoncxx::v_noabi::stdx::optional< bsoncxx::v_noabi::document::value > mongocxx::v_noabi::collection::find_one_and_replace | ( | client_session const & | session, | 
| bsoncxx::v_noabi::document::view_or_value | filter, | ||
| bsoncxx::v_noabi::document::view_or_value | replacement, | ||
| options::find_one_and_replace const & | options = options::find_one_and_replace() ) | 
Finds a single document matching the filter, replaces it, and returns either the original or the replacement document.
| session | The mongocxx::v_noabi::client_session with which to perform the operation. | 
| filter | Document view representing a document that should be replaced. | 
| replacement | Document view representing the replacement for a matching document. | 
| options | Optional arguments, see options::find_one_and_replace. | 
| Throws | mongocxx::v_noabi::logic_error if the collation option is specified and an unacknowledged write concern is used. | 
| Throws | mongocxx::v_noabi::write_exception if the operation fails. | 
| bsoncxx::v_noabi::stdx::optional< bsoncxx::v_noabi::document::value > mongocxx::v_noabi::collection::find_one_and_update | ( | bsoncxx::v_noabi::document::view_or_value | filter, | 
| bsoncxx::v_noabi::document::view_or_value | update, | ||
| options::find_one_and_update const & | options = options::find_one_and_update() ) | 
Finds a single document matching the filter, updates it, and returns either the original or the newly-updated document.
| filter | Document view representing a document that should be updated. | 
| update | Document view representing the update to apply to a matching document. | 
| options | Optional arguments, see options::find_one_and_update. | 
| Throws | mongocxx::v_noabi::logic_error if the collation option is specified and an unacknowledged write concern is used. | 
| Throws | mongocxx::v_noabi::write_exception if the operation fails. | 
| bsoncxx::v_noabi::stdx::optional< bsoncxx::v_noabi::document::value > mongocxx::v_noabi::collection::find_one_and_update | ( | bsoncxx::v_noabi::document::view_or_value | filter, | 
| pipeline const & | update, | ||
| options::find_one_and_update const & | options = options::find_one_and_update() ) | 
Finds a single document matching the filter, updates it, and returns either the original or the newly-updated document.
| filter | Document view representing a document that should be updated. | 
| update | Pipeline representing the update to apply to a matching document. | 
| options | Optional arguments, see options::find_one_and_update. | 
| Throws | mongocxx::v_noabi::logic_error if the collation option is specified and an unacknowledged write concern is used. | 
| Throws | mongocxx::v_noabi::write_exception if the operation fails. | 
| bsoncxx::v_noabi::stdx::optional< bsoncxx::v_noabi::document::value > mongocxx::v_noabi::collection::find_one_and_update | ( | bsoncxx::v_noabi::document::view_or_value | filter, | 
| std::initializer_list< _empty_doc_tag > | update, | ||
| options::find_one_and_update const & | options = options::find_one_and_update() ) | 
Finds a single document matching the filter, updates it, and returns either the original or the newly-updated document.
| filter | Document view representing a document that should be updated. | 
| update | Supports the empty update {}. | 
| options | Optional arguments, see options::find_one_and_update. | 
| Throws | mongocxx::v_noabi::logic_error if the collation option is specified and an unacknowledged write concern is used. | 
| Throws | mongocxx::v_noabi::write_exception if the operation fails. | 
| bsoncxx::v_noabi::stdx::optional< bsoncxx::v_noabi::document::value > mongocxx::v_noabi::collection::find_one_and_update | ( | client_session const & | session, | 
| bsoncxx::v_noabi::document::view_or_value | filter, | ||
| bsoncxx::v_noabi::document::view_or_value | update, | ||
| options::find_one_and_update const & | options = options::find_one_and_update() ) | 
Finds a single document matching the filter, updates it, and returns either the original or the newly-updated document.
| session | The mongocxx::v_noabi::client_session with which to perform the operation. | 
| filter | Document view representing a document that should be updated. | 
| update | Document view representing the update to apply to a matching document. | 
| options | Optional arguments, see options::find_one_and_update. | 
| Throws | mongocxx::v_noabi::logic_error if the collation option is specified and an unacknowledged write concern is used. | 
| Throws | mongocxx::v_noabi::write_exception if the operation fails. | 
| bsoncxx::v_noabi::stdx::optional< bsoncxx::v_noabi::document::value > mongocxx::v_noabi::collection::find_one_and_update | ( | client_session const & | session, | 
| bsoncxx::v_noabi::document::view_or_value | filter, | ||
| pipeline const & | update, | ||
| options::find_one_and_update const & | options = options::find_one_and_update() ) | 
Finds a single document matching the filter, updates it, and returns either the original or the newly-updated document.
| session | The mongocxx::v_noabi::client_session with which to perform the operation. | 
| filter | Document view representing a document that should be updated. | 
| update | Pipeline representing the update to apply to a matching document. | 
| options | Optional arguments, see options::find_one_and_update. | 
| Throws | mongocxx::v_noabi::logic_error if the collation option is specified and an unacknowledged write concern is used. | 
| Throws | mongocxx::v_noabi::write_exception if the operation fails. | 
| bsoncxx::v_noabi::stdx::optional< bsoncxx::v_noabi::document::value > mongocxx::v_noabi::collection::find_one_and_update | ( | client_session const & | session, | 
| bsoncxx::v_noabi::document::view_or_value | filter, | ||
| std::initializer_list< _empty_doc_tag > | update, | ||
| options::find_one_and_update const & | options = options::find_one_and_update() ) | 
Finds a single document matching the filter, updates it, and returns either the original or the newly-updated document.
| session | The mongocxx::v_noabi::client_session with which to perform the operation. | 
| filter | Document view representing a document that should be updated. | 
| update | Supports the empty update {}. | 
| options | Optional arguments, see options::find_one_and_update. | 
| Throws | mongocxx::v_noabi::logic_error if the collation option is specified and an unacknowledged write concern is used. | 
| Throws | mongocxx::v_noabi::write_exception if the operation fails. | 
| index_view mongocxx::v_noabi::collection::indexes | ( | ) | 
Gets an index_view to the collection.
| 
 | inline | 
Inserts multiple documents into the collection. If any of the documents are missing identifiers the driver will generate them.
| container_type | The container type. Must meet the requirements for the container concept with a value type of model::write. | 
| session | The mongocxx::v_noabi::client_session with which to perform the inserts. | 
| container | Container of a documents to insert. | 
| options | Optional arguments, see options::insert. | 
| mongocxx::v_noabi::bulk_write_exception | when the operation fails. | 
| 
 | inline | 
Inserts multiple documents into the collection. If any of the documents are missing identifiers the driver will generate them.
| document_view_iterator_type | The iterator type. Must meet the requirements for the input iterator concept with a value type of bsoncxx::v_noabi::document::view. | 
| session | The mongocxx::v_noabi::client_session with which to perform the inserts. | 
| begin | Iterator pointing to the first document to be inserted. | 
| end | Iterator pointing to the end of the documents to be inserted. | 
| options | Optional arguments, see options::insert. | 
| mongocxx::v_noabi::bulk_write_exception | if the operation fails. | 
| 
 | inline | 
Inserts multiple documents into the collection. If any of the documents are missing identifiers the driver will generate them.
| container_type | The container type. Must meet the requirements for the container concept with a value type of model::write. | 
| container | Container of a documents to insert. | 
| options | Optional arguments, see options::insert. | 
| mongocxx::v_noabi::bulk_write_exception | when the operation fails. | 
| 
 | inline | 
Inserts multiple documents into the collection. If any of the documents are missing identifiers the driver will generate them.
| document_view_iterator_type | The iterator type. Must meet the requirements for the input iterator concept with a value type of bsoncxx::v_noabi::document::view. | 
| begin | Iterator pointing to the first document to be inserted. | 
| end | Iterator pointing to the end of the documents to be inserted. | 
| options | Optional arguments, see options::insert. | 
| mongocxx::v_noabi::bulk_write_exception | if the operation fails. | 
| bsoncxx::v_noabi::stdx::optional< result::insert_one > mongocxx::v_noabi::collection::insert_one | ( | bsoncxx::v_noabi::document::view_or_value | document, | 
| options::insert const & | options = {} ) | 
Inserts a single document into the collection. If the document is missing an identifier (_id field) one will be generated for it. 
| document | The document to insert. | 
| options | Optional arguments, see options::insert. | 
| mongocxx::v_noabi::bulk_write_exception | if the operation fails. | 
| bsoncxx::v_noabi::stdx::optional< result::insert_one > mongocxx::v_noabi::collection::insert_one | ( | client_session const & | session, | 
| bsoncxx::v_noabi::document::view_or_value | document, | ||
| options::insert const & | options = {} ) | 
Inserts a single document into the collection. If the document is missing an identifier (_id field) one will be generated for it. 
| session | The mongocxx::v_noabi::client_session with which to perform the insert. | 
| document | The document to insert. | 
| options | Optional arguments, see options::insert. | 
| mongocxx::v_noabi::bulk_write_exception | if the operation fails. | 
| cursor mongocxx::v_noabi::collection::list_indexes | ( | ) | const | 
Returns a list of the indexes currently on this collection.
| mongocxx::v_noabi::operation_exception | if the operation fails. | 
| cursor mongocxx::v_noabi::collection::list_indexes | ( | client_session const & | session | ) | const | 
Returns a list of the indexes currently on this collection.
| session | The mongocxx::v_noabi::client_session with which to perform the operation. | 
| mongocxx::v_noabi::operation_exception | if the operation fails. | 
| bsoncxx::v_noabi::stdx::string_view mongocxx::v_noabi::collection::name | ( | ) | const | 
Returns the name of this collection.
| 
 | explicitnoexcept | 
Returns true if the collection is valid, meaning it was not default constructed or moved from.
| 
 | noexcept | 
Move assigns a collection.
| collection & mongocxx::v_noabi::collection::operator= | ( | collection const & | ) | 
Copy assigns a collection.
| mongocxx::v_noabi::read_concern mongocxx::v_noabi::collection::read_concern | ( | ) | const | 
Gets the read_concern for the collection.
If a read_concern has not been explicitly set for this collection object, it inherits the read_concern from its parent database or client object.
| void mongocxx::v_noabi::collection::read_concern | ( | mongocxx::v_noabi::read_concern | rc | ) | 
Sets the read_concern for this collection. Changes will not have any effect on existing cursors or other read operations which use the previously-set read concern.
| rc | The new read_concern | 
| mongocxx::v_noabi::read_preference mongocxx::v_noabi::collection::read_preference | ( | ) | const | 
Gets the read_preference for the collection.
| void mongocxx::v_noabi::collection::read_preference | ( | mongocxx::v_noabi::read_preference | rp | ) | 
Sets the read_preference for this collection. Changes will not have any effect on existing cursors or other read operations which use the read preference.
| rp | The read_preference to set. | 
| void mongocxx::v_noabi::collection::rename | ( | bsoncxx::v_noabi::string::view_or_value | new_name, | 
| bool | drop_target_before_rename = false, | ||
| bsoncxx::v_noabi::stdx::optional< write_concern > const & | write_concern = {} ) | 
Rename this collection.
| new_name | The new name to assign to the collection. | 
| drop_target_before_rename | Whether to overwrite any existing collections called new_name. The default is false. | 
| write_concern | (optional) The write concern to use for this operation. Defaults to the collection wide write concern if none is provided. | 
| mongocxx::v_noabi::operation_exception | if the operation fails. | 
| void mongocxx::v_noabi::collection::rename | ( | client_session const & | session, | 
| bsoncxx::v_noabi::string::view_or_value | new_name, | ||
| bool | drop_target_before_rename = false, | ||
| bsoncxx::v_noabi::stdx::optional< write_concern > const & | write_concern = {} ) | 
Rename this collection.
| session | The mongocxx::v_noabi::client_session with which to perform the rename. | 
| new_name | The new name to assign to the collection. | 
| drop_target_before_rename | Whether to overwrite any existing collections called new_name. The default is false. | 
| write_concern | (optional) The write concern to use for this operation. Defaults to the collection wide write concern if none is provided. | 
| mongocxx::v_noabi::operation_exception | if the operation fails. | 
| bsoncxx::v_noabi::stdx::optional< result::replace_one > mongocxx::v_noabi::collection::replace_one | ( | bsoncxx::v_noabi::document::view_or_value | filter, | 
| bsoncxx::v_noabi::document::view_or_value | replacement, | ||
| options::replace const & | options = options::replace{} ) | 
Replaces a single document matching the provided filter in this collection.
| filter | Document representing the match criteria. | 
| replacement | The replacement document. | 
| options | Optional arguments, see options::replace. | 
| mongocxx::v_noabi::logic_error | if the replacement is invalid, or mongocxx::v_noabi::bulk_write_exception if the operation fails. | 
| bsoncxx::v_noabi::stdx::optional< result::replace_one > mongocxx::v_noabi::collection::replace_one | ( | client_session const & | session, | 
| bsoncxx::v_noabi::document::view_or_value | filter, | ||
| bsoncxx::v_noabi::document::view_or_value | replacement, | ||
| options::replace const & | options = options::replace{} ) | 
Replaces a single document matching the provided filter in this collection.
| session | The mongocxx::v_noabi::client_session with which to perform the replace. | 
| filter | Document representing the match criteria. | 
| replacement | The replacement document. | 
| options | Optional arguments, see options::replace. | 
| mongocxx::v_noabi::logic_error | if the replacement is invalid, or mongocxx::v_noabi::bulk_write_exception if the operation fails. | 
| search_index_view mongocxx::v_noabi::collection::search_indexes | ( | ) | 
Gets a search_index_view to the collection.
| bsoncxx::v_noabi::stdx::optional< result::update > mongocxx::v_noabi::collection::update_many | ( | bsoncxx::v_noabi::document::view_or_value | filter, | 
| bsoncxx::v_noabi::document::view_or_value | update, | ||
| options::update const & | options = options::update() ) | 
Updates multiple documents matching the provided filter in this collection.
| filter | Document representing the match criteria. | 
| update | Document representing the update to be applied to matching documents. | 
| options | Optional arguments, see options::update. | 
| mongocxx::v_noabi::logic_error | if the update is invalid, or mongocxx::v_noabi::bulk_write_exception if the operation fails. | 
| bsoncxx::v_noabi::stdx::optional< result::update > mongocxx::v_noabi::collection::update_many | ( | bsoncxx::v_noabi::document::view_or_value | filter, | 
| pipeline const & | update, | ||
| options::update const & | options = options::update() ) | 
Updates multiple documents matching the provided filter in this collection.
| filter | Document representing the match criteria. | 
| update | Pipeline representing the update to be applied to matching documents. | 
| options | Optional arguments, see options::update. | 
| mongocxx::v_noabi::logic_error | if the update is invalid, or mongocxx::v_noabi::bulk_write_exception if the operation fails. | 
| bsoncxx::v_noabi::stdx::optional< result::update > mongocxx::v_noabi::collection::update_many | ( | bsoncxx::v_noabi::document::view_or_value | filter, | 
| std::initializer_list< _empty_doc_tag > | update, | ||
| options::update const & | options = options::update() ) | 
Updates multiple documents matching the provided filter in this collection.
| filter | Document representing the match criteria. | 
| update | Supports the empty update {}. | 
| options | Optional arguments, see options::update. | 
| mongocxx::v_noabi::logic_error | if the update is invalid, or mongocxx::v_noabi::bulk_write_exception if the operation fails. | 
| bsoncxx::v_noabi::stdx::optional< result::update > mongocxx::v_noabi::collection::update_many | ( | client_session const & | session, | 
| bsoncxx::v_noabi::document::view_or_value | filter, | ||
| bsoncxx::v_noabi::document::view_or_value | update, | ||
| options::update const & | options = options::update() ) | 
Updates multiple documents matching the provided filter in this collection.
| session | The mongocxx::v_noabi::client_session with which to perform the update. | 
| filter | Document representing the match criteria. | 
| update | Document representing the update to be applied to matching documents. | 
| options | Optional arguments, see options::update. | 
| mongocxx::v_noabi::logic_error | if the update is invalid, or mongocxx::v_noabi::bulk_write_exception if the operation fails. | 
| bsoncxx::v_noabi::stdx::optional< result::update > mongocxx::v_noabi::collection::update_many | ( | client_session const & | session, | 
| bsoncxx::v_noabi::document::view_or_value | filter, | ||
| pipeline const & | update, | ||
| options::update const & | options = options::update() ) | 
Updates multiple documents matching the provided filter in this collection.
| session | The mongocxx::v_noabi::client_session with which to perform the update. | 
| filter | Document representing the match criteria. | 
| update | Pipeline representing the update to be applied to matching documents. | 
| options | Optional arguments, see options::update. | 
| mongocxx::v_noabi::logic_error | if the update is invalid, or mongocxx::v_noabi::bulk_write_exception if the operation fails. | 
| bsoncxx::v_noabi::stdx::optional< result::update > mongocxx::v_noabi::collection::update_many | ( | client_session const & | session, | 
| bsoncxx::v_noabi::document::view_or_value | filter, | ||
| std::initializer_list< _empty_doc_tag > | update, | ||
| options::update const & | options = options::update() ) | 
Updates multiple documents matching the provided filter in this collection.
| session | The mongocxx::v_noabi::client_session with which to perform the update. | 
| filter | Document representing the match criteria. | 
| update | Supports the empty update {}. | 
| options | Optional arguments, see options::update. | 
| mongocxx::v_noabi::logic_error | if the update is invalid, or mongocxx::v_noabi::bulk_write_exception if the operation fails. | 
| bsoncxx::v_noabi::stdx::optional< result::update > mongocxx::v_noabi::collection::update_one | ( | bsoncxx::v_noabi::document::view_or_value | filter, | 
| bsoncxx::v_noabi::document::view_or_value | update, | ||
| options::update const & | options = options::update() ) | 
Updates a single document matching the provided filter in this collection.
| filter | Document representing the match criteria. | 
| update | Document representing the update to be applied to a matching document. | 
| options | Optional arguments, see options::update. | 
| mongocxx::v_noabi::logic_error | if the update is invalid, or mongocxx::v_noabi::bulk_write_exception if the operation fails. | 
| bsoncxx::v_noabi::stdx::optional< result::update > mongocxx::v_noabi::collection::update_one | ( | bsoncxx::v_noabi::document::view_or_value | filter, | 
| pipeline const & | update, | ||
| options::update const & | options = options::update() ) | 
Updates a single document matching the provided filter in this collection.
| filter | Document representing the match criteria. | 
| update | Pipeline representing the update to be applied to a matching document. | 
| options | Optional arguments, see options::update. | 
| mongocxx::v_noabi::logic_error | if the update is invalid, or mongocxx::v_noabi::bulk_write_exception if the operation fails. | 
| bsoncxx::v_noabi::stdx::optional< result::update > mongocxx::v_noabi::collection::update_one | ( | bsoncxx::v_noabi::document::view_or_value | filter, | 
| std::initializer_list< _empty_doc_tag > | update, | ||
| options::update const & | options = options::update() ) | 
Updates a single document matching the provided filter in this collection.
| filter | Document representing the match criteria. | 
| update | Supports the empty update {}. | 
| options | Optional arguments, see options::update. | 
| mongocxx::v_noabi::logic_error | if the update is invalid, or mongocxx::v_noabi::bulk_write_exception if the operation fails. | 
| bsoncxx::v_noabi::stdx::optional< result::update > mongocxx::v_noabi::collection::update_one | ( | client_session const & | session, | 
| bsoncxx::v_noabi::document::view_or_value | filter, | ||
| bsoncxx::v_noabi::document::view_or_value | update, | ||
| options::update const & | options = options::update() ) | 
Updates a single document matching the provided filter in this collection.
| session | The mongocxx::v_noabi::client_session with which to perform the update. | 
| filter | Document representing the match criteria. | 
| update | Document representing the update to be applied to a matching document. | 
| options | Optional arguments, see options::update. | 
| mongocxx::v_noabi::logic_error | if the update is invalid, or mongocxx::v_noabi::bulk_write_exception if the operation fails. | 
| bsoncxx::v_noabi::stdx::optional< result::update > mongocxx::v_noabi::collection::update_one | ( | client_session const & | session, | 
| bsoncxx::v_noabi::document::view_or_value | filter, | ||
| pipeline const & | update, | ||
| options::update const & | options = options::update() ) | 
Updates a single document matching the provided filter in this collection.
| session | The mongocxx::v_noabi::client_session with which to perform the update. | 
| filter | Document representing the match criteria. | 
| update | Pipeline representing the update to be applied to a matching document. | 
| options | Optional arguments, see options::update. | 
| mongocxx::v_noabi::logic_error | if the update is invalid, or mongocxx::v_noabi::bulk_write_exception if the operation fails. | 
| bsoncxx::v_noabi::stdx::optional< result::update > mongocxx::v_noabi::collection::update_one | ( | client_session const & | session, | 
| bsoncxx::v_noabi::document::view_or_value | filter, | ||
| std::initializer_list< _empty_doc_tag > | update, | ||
| options::update const & | options = options::update() ) | 
Updates a single document matching the provided filter in this collection.
| session | The mongocxx::v_noabi::client_session with which to perform the update. | 
| filter | Document representing the match criteria. | 
| update | Supports the empty update {}. | 
| options | Optional arguments, see options::update. | 
| mongocxx::v_noabi::logic_error | if the update is invalid, or mongocxx::v_noabi::bulk_write_exception if the operation fails. | 
| change_stream mongocxx::v_noabi::collection::watch | ( | client_session const & | session, | 
| options::change_stream const & | options = {} ) | 
| session | The mongocxx::v_noabi::client_session with which to perform the watch operation. | 
| options | The options to use when creating the change stream. | 
| change_stream mongocxx::v_noabi::collection::watch | ( | client_session const & | session, | 
| pipeline const & | pipe, | ||
| options::change_stream const & | options = {} ) | 
Gets a change stream on this collection.
| session | The mongocxx::v_noabi::client_session with which to perform the watch operation. | 
| pipe | The aggregation pipeline to be used on the change notifications. | 
| options | The options to use when creating the change stream. | 
| change_stream mongocxx::v_noabi::collection::watch | ( | options::change_stream const & | options = {} | ) | 
Gets a change stream on this collection with an empty pipeline. Change streams are only supported with a "majority" read concern or no read concern.
| options | The options to use when creating the change stream. | 
| change_stream mongocxx::v_noabi::collection::watch | ( | pipeline const & | pipe, | 
| options::change_stream const & | options = {} ) | 
Gets a change stream on this collection. Change streams are only supported with a "majority" read concern or no read concern.
| pipe | The aggregation pipeline to be used on the change notifications. Only a subset of pipeline operations are supported for change streams. For more information see the change streams documentation. | 
| options | The options to use when creating the change stream. | 
| 
 | inline | 
Sends a write to the server as a bulk write operation.
| session | The mongocxx::v_noabi::client_session with which to perform the bulk operation. | 
| write | A model::write. | 
| options | Optional arguments, see options::bulk_write. | 
| mongocxx::v_noabi::bulk_write_exception | when there are errors processing the writes. | 
| 
 | inline | 
Sends a write to the server as a bulk write operation.
| write | A model::write. | 
| options | Optional arguments, see options::bulk_write. | 
| mongocxx::v_noabi::bulk_write_exception | when there are errors processing the writes. | 
| mongocxx::v_noabi::write_concern mongocxx::v_noabi::collection::write_concern | ( | ) | const | 
Gets the write_concern for the collection.
| void mongocxx::v_noabi::collection::write_concern | ( | mongocxx::v_noabi::write_concern | wc | ) | 
Sets the write_concern for this collection. Changes will not have any effect on existing write operations.
| wc | The new write_concern to use. |