1#ifndef DITTO_DOCUMENT_ID_PATH_H
2#define DITTO_DOCUMENT_ID_PATH_H
4#include "document_path_component.hpp"
26class DITTO_DEPRECATED_BECAUSE(
27 "Use DQL (Ditto Query Language) instead. For more information "
28 "see: https://ditto.com/link/legacy-to-dql-guide") DocumentIdPath {
29 friend struct DocumentId;
33 std::vector<DocumentPathComponent> path_components;
42 DocumentIdPath(nlohmann::json value, DocumentPathComponent initial_path);
53 DocumentIdPath(
const DocumentIdPath *document_id_path, std::string key);
63 DocumentIdPath(
const DocumentIdPath *document_id_path, std::size_t index);
66 DocumentIdPath operator[](std::string key);
67 DocumentIdPath operator[](std::size_t index);
double get_double_value() const
Returns the value at the previously specified key in the document ID as a double. If the key was inva...
float get_float_value() const
Returns the value at the previously specified key in the document ID as a float. If the key was inval...
int get_int_value() const
Returns the value at the previously specified key in the document ID as an int. If the key was invali...
nlohmann::json get_json() const
Returns the value at the previously specified key in the document ID as a nlohmann::json object....
bool get_bool_value() const
Returns the value at the previously specified key in the document ID as a bool. If the key was invali...
std::string get_string_value() const
Returns the value at the previously specified key in the document ID as a std::string....
Namespace for the Ditto C++ SDK types and functions.
Definition AbstractDocumentPath.hpp:19