1#ifndef _DITTO_UPDATE_RESULT_
2#define _DITTO_UPDATE_RESULT_
4#include "DocumentId.hpp"
20enum class UpdateResultType {
71 nlohmann::json
value);
Provides an interface to specify a path to a key in a document that you can then call various update ...
Definition MutableDocumentPath.hpp:31
An identifier for a Document.
Definition DocumentId.hpp:21
Provides information about a successful update operation on a document.
Definition UpdateResult.hpp:30
std::string path
Definition UpdateResult.hpp:44
UpdateResultType type
Definition UpdateResult.hpp:49
DocumentId document_id
Definition UpdateResult.hpp:38
An update result when the update result's type is UpdateResultType::Incremented.
Definition UpdateResult.hpp:89
double amount
Definition UpdateResult.hpp:95
An update result when the update result's type is UpdateResultType::Removed.
Definition UpdateResult.hpp:78
An update result when the update result's type is UpdateResultType::Set.
Definition UpdateResult.hpp:61
nlohmann::json value
Definition UpdateResult.hpp:67