![]() |
Mangrove
The C++ Object Document Mapper for MongoDB
|
Represents an update operator that modifies a certain elements. More...
#include <query_builder.hpp>
Public Member Functions | |
void | append_to_bson (bsoncxx::builder::core &builder, bool wrap=false) const |
Appends this query to a BSON core builder as a key-value pair "$op: {field: value}". More... | |
operator bsoncxx::document::view_or_value () const | |
Creates a BSON value of the form "$op: {field: value}". | |
Represents an update operator that modifies a certain elements.
This creates BSON expressions of the form "$op: {field: value}", where $op can be $set, $inc, etc.
This class stores the value to be compared by reference. To store a temporary or computed value, use UpdateExprValue.
NvpT | The type of the name-value pair |
U | The type of the value being compared. |
|
inline |
Appends this query to a BSON core builder as a key-value pair "$op: {field: value}".
builder | A basic BSON core builder. |
Whether | to wrap this expression inside a document. |