![]() |
Mangrove
The C++ Object Document Mapper for MongoDB
|
Creates an expression that uses the $currentDate operator. More...
#include <query_builder.hpp>
Public Member Functions | |
constexpr | current_date_expr (const NvpT &nvp, bool is_date) |
Creates an expression that uses the $currentDate operator with a given field and type. More... | |
void | append_to_bson (bsoncxx::builder::core &builder, bool wrap=false) const |
Appends this query to a BSON core builder as an expression '. More... | |
Creates an expression that uses the $currentDate operator.
|
inline |
Creates an expression that uses the $currentDate operator with a given field and type.
nvp | The given field |
is_date | Whether the field's type is a date (true) or a timestmap (false) |
|
inline |
Appends this query to a BSON core builder as an expression '.
type: "timestamp|date"}}'
builder | A basic BSON core builder. |
Whether | to wrap this expression inside a document. |