Ditto 3.0.11
|
A document belonging to a Collection
with an inner value and an identifier (DocumentId
).
More...
#include <Document.hpp>
Public Member Functions | |
Document (const Document &)=delete | |
Document (Document &&) noexcept | |
DocumentId | id () const |
Get the ID of the document. | |
nlohmann::json | value () const |
Get the document's inner value. | |
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 in the document. | |
A document belonging to a Collection
with an inner value and an identifier (DocumentId
).
DocumentId ditto::Document::id | ( | ) | const |
Get the ID of the document.
DocumentPath ditto::Document::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 in the document.
[in] | initial_path | The initial part of the path needed to get to the key in the document you wish to get the value of. |
DocumentPath
object with the provided key incorporated into the document path. json ditto::Document::value | ( | ) | const |
Get the document's inner value.