1#ifndef _DITTO_DOCUMENT_
2#define _DITTO_DOCUMENT_
4#include "DocumentId.hpp"
5#include "DocumentPath.hpp"
9typedef struct CDocument CDocument_t;
18 friend class DocumentHelpers;
19 friend class DocumentOperator;
21 friend class QueryOperator;
25 CDocument_t *document;
27 explicit Document(CDocument_t *document);
A document belonging to a Collection with an inner value and an identifier (DocumentId).
Definition: Document.hpp:17
DocumentPath operator[](const std::string initial_path)
Used to specify a path to a key in the document that you can subscript further to access a nested key...
Definition: Document.cpp:31
nlohmann::json value() const
Get the document's inner value.
Definition: Document.cpp:24
DocumentId id() const
Get the ID of the document.
Definition: Document.cpp:22
Provides an interface to specify a path to a key in a document that you can then call a function on t...
Definition: DocumentPath.hpp:30
The type that is returned when calling observe_local. It handles the logic for calling the event hand...
Definition: LiveQuery.hpp:108
These objects are returned when using find-like functionality on Collection objects.
Definition: PendingCursorOperation.hpp:44
These objects are returned when using Collection::find_by_id functionality.
Definition: PendingIDSpecificOperation.hpp:40
basic_json<> json
default JSON class
Definition: json.hpp:2933
An identifier for a Document.
Definition: DocumentId.hpp:21