From 0baff463b196d42c50d76638224f3d35a9787cda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ante=20Pu=C5=A1i=C4=87?= Date: Fri, 22 Dec 2023 15:18:28 +0100 Subject: [PATCH] Add docstring for Addocument --- src/storage/v2/property_store.hpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/storage/v2/property_store.hpp b/src/storage/v2/property_store.hpp index fc70002b1..a7b8887e9 100644 --- a/src/storage/v2/property_store.hpp +++ b/src/storage/v2/property_store.hpp @@ -42,6 +42,9 @@ class ExternalStoreMock { void DropIndex(std::string index_name) { storage.erase(index_name); } + /// @brief Add document with given ID + /// @param id Id of graph element + /// @param document Document storing the properties void AddDocument(std::uint64_t id, nlohmann::json document) { storage[INDEX][id] = document; } nlohmann::json GetDocument(std::uint64_t id) { return storage[INDEX][id]; }