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:21
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:40
std::string path
Definition: UpdateResult.hpp:58
UpdateResultType type
Definition: UpdateResult.hpp:63
DocumentId document_id
Definition: UpdateResult.hpp:52
An update result when the update result's type is UpdateResultType::Incremented.
Definition: UpdateResult.hpp:114
double amount
Definition: UpdateResult.hpp:120
An update result when the update result's type is UpdateResultType::Inserted.
Definition: UpdateResult.hpp:165
nlohmann::json value
Definition: UpdateResult.hpp:171
An update result when the update result's type is UpdateResultType::Popped.
Definition: UpdateResult.hpp:148
nlohmann::json value
Definition: UpdateResult.hpp:154
An update result when the update result's type is UpdateResultType::Pushed.
Definition: UpdateResult.hpp:131
nlohmann::json value
Definition: UpdateResult.hpp:137
An update result when the update result's type is UpdateResultType::Removed.
Definition: UpdateResult.hpp:92
An update result when the update result's type is UpdateResultType::ReplacedWithCounter.
Definition: UpdateResult.hpp:103
An update result when the update result's type is UpdateResultType::Set.
Definition: UpdateResult.hpp:75
nlohmann::json value
Definition: UpdateResult.hpp:81