1#ifndef _DITTO_UPDATE_RESULT_
2#define _DITTO_UPDATE_RESULT_
4#include "DocumentId.hpp"
22enum class UpdateResultType {
Provides an interface to specify a path to a key in a document that you can then call various update ...
Definition MutableDocumentPath.hpp:32
basic_json<> json
default JSON class
Definition json.hpp:2933
An identifier for a Document.
Definition DocumentId.hpp:21
Provides information about a successful update operation on a document.
Definition UpdateResult.hpp:33
std::string path
Definition UpdateResult.hpp:48
UpdateResultType type
Definition UpdateResult.hpp:53
DocumentId document_id
Definition UpdateResult.hpp:42
An update result when the update result's type is UpdateResultType::Incremented.
Definition UpdateResult.hpp:104
double amount
Definition UpdateResult.hpp:110
An update result when the update result's type is UpdateResultType::Removed.
Definition UpdateResult.hpp:82
An update result when the update result's type is UpdateResultType::ReplacedWithCounter.
Definition UpdateResult.hpp:93
An update result when the update result's type is UpdateResultType::Set.
Definition UpdateResult.hpp:65
nlohmann::json value
Definition UpdateResult.hpp:71