1#ifndef _DITTO_UPDATE_RESULT_
2#define _DITTO_UPDATE_RESULT_
4#include "DocumentId.hpp"
25enum 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:39
std::string path
Definition: UpdateResult.hpp:57
UpdateResultType type
Definition: UpdateResult.hpp:62
DocumentId document_id
Definition: UpdateResult.hpp:51
An update result when the update result's type is UpdateResultType::Incremented.
Definition: UpdateResult.hpp:113
double amount
Definition: UpdateResult.hpp:119
An update result when the update result's type is UpdateResultType::Inserted.
Definition: UpdateResult.hpp:164
nlohmann::json value
Definition: UpdateResult.hpp:170
An update result when the update result's type is UpdateResultType::Popped.
Definition: UpdateResult.hpp:147
nlohmann::json value
Definition: UpdateResult.hpp:153
An update result when the update result's type is UpdateResultType::Pushed.
Definition: UpdateResult.hpp:130
nlohmann::json value
Definition: UpdateResult.hpp:136
An update result when the update result's type is UpdateResultType::Removed.
Definition: UpdateResult.hpp:91
An update result when the update result's type is UpdateResultType::ReplacedWithCounter.
Definition: UpdateResult.hpp:102
An update result when the update result's type is UpdateResultType::Set.
Definition: UpdateResult.hpp:74
nlohmann::json value
Definition: UpdateResult.hpp:80