Mangrove
The C++ Object Document Mapper for MongoDB
Public Member Functions | List of all members
mangrove::unset_expr< NvpT > Class Template Reference

Represents an expresion that uses the $unset operator. 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 "$unset: {field: ''}". More...
 

Detailed Description

template<typename NvpT>
class mangrove::unset_expr< NvpT >

Represents an expresion that uses the $unset operator.

Member Function Documentation

template<typename NvpT >
void mangrove::unset_expr< NvpT >::append_to_bson ( bsoncxx::builder::core &  builder,
bool  wrap = false 
) const
inline

Appends this query to a BSON core builder as a key-value pair "$unset: {field: ''}".

Parameters
builderA basic BSON core builder.
Whetherto wrap this expression inside a document.

The documentation for this class was generated from the following files: