17 #include <mongocxx/model/update_many-fwd.hpp>
19 #include <bsoncxx/array/view_or_value.hpp>
20 #include <bsoncxx/document/view_or_value.hpp>
21 #include <bsoncxx/stdx/optional.hpp>
22 #include <mongocxx/hint.hpp>
23 #include <mongocxx/pipeline.hpp>
24 #include <mongocxx/stdx.hpp>
26 #include <mongocxx/config/prelude.hpp>
48 class _empty_doc_tag {
49 _empty_doc_tag() =
default;
85 std::initializer_list<_empty_doc_tag>
update);
125 const stdx::optional<bsoncxx::v_noabi::document::view_or_value>&
collation()
const;
146 const stdx::optional<mongocxx::v_noabi::hint>&
hint()
const;
168 const stdx::optional<bool>&
upsert()
const;
188 const stdx::optional<bsoncxx::v_noabi::array::view_or_value>&
array_filters()
const;
194 stdx::optional<bsoncxx::v_noabi::document::view_or_value> _collation;
195 stdx::optional<bsoncxx::v_noabi::array::view_or_value> _array_filters;
196 stdx::optional<bool> _upsert;
197 stdx::optional<mongocxx::v_noabi::hint> _hint;
204 #include <mongocxx/config/postlude.hpp>
Class representing a hint to be passed to a database operation.
Definition: hint.hpp:34
Class representing a MongoDB update operation that modifies multiple documents.
Definition: update_many.hpp:35
const stdx::optional< bool > & upsert() const
Gets the current value of the upsert option.
update_many(bsoncxx::v_noabi::document::view_or_value filter, const pipeline &update)
Constructs an update operation that will modify all documents matching the filter.
const stdx::optional< mongocxx::v_noabi::hint > & hint() const
Gets the current hint.
update_many(bsoncxx::v_noabi::document::view_or_value filter, std::initializer_list< _empty_doc_tag > update)
Constructs an update operation that will modify all documents matching the filter.
const stdx::optional< bsoncxx::v_noabi::array::view_or_value > & array_filters() const
Get array filters for this operation.
update_many & array_filters(bsoncxx::v_noabi::array::view_or_value array_filters)
Set array filters for this update operation.
const stdx::optional< bsoncxx::v_noabi::document::view_or_value > & collation() const
Gets the collation option for this update operation.
update_many & upsert(bool upsert)
Sets the upsert option.
const bsoncxx::v_noabi::document::view_or_value & filter() const
Gets the filter.
update_many(bsoncxx::v_noabi::document::view_or_value filter, bsoncxx::v_noabi::document::view_or_value update)
Constructs an update operation that will modify all documents matching the filter.
update_many & collation(bsoncxx::v_noabi::document::view_or_value collation)
Sets the collation for this update operation.
const bsoncxx::v_noabi::document::view_or_value & update() const
Gets the update document.
update_many & hint(mongocxx::v_noabi::hint index_hint)
Sets the index to use for this operation.
Class representing a MongoDB aggregation pipeline.
Definition: pipeline.hpp:39
The top-level namespace for mongocxx library entities.
Definition: bulk_write-fwd.hpp:19