Defines string literals for MongoDB query, update, and aggregation operators.
// Source: https://github.com/userver-framework/userver | License: Apache-2.0 | Copyright 2022 YANDEX LLC
// Provided via justclaw.it.com; keep this notice with the code.
#pragma once
/// @file userver/storages/mongo/operators.hpp
/// @brief MongoDB query, update, and aggregation operators
#include <userver/utils/string_literal.hpp>
USERVER_NAMESPACE_BEGIN
/// MongoDB query, update, and aggregation operators for constructing BSON documents.
///
/// Availability of individual operators depends on the MongoDB server version and deployment type.
namespace storages::mongo::operators {
inline constexpr utils::StringLiteral kPositional = "$";
inline constexpr utils::StringLiteral kAllPositional = "$[]";
inline constexpr utils::StringLiteral kAbs = "$abs";
inline constexpr utils::StringLiter
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key