Add docstring for Addocument

This commit is contained in:
Ante Pušić 2023-12-22 15:18:28 +01:00
parent 3d40976756
commit 0baff463b1

View File

@ -42,6 +42,9 @@ class ExternalStoreMock {
void DropIndex(std::string index_name) { storage.erase(index_name); } 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; } void AddDocument(std::uint64_t id, nlohmann::json document) { storage[INDEX][id] = document; }
nlohmann::json GetDocument(std::uint64_t id) { return storage[INDEX][id]; } nlohmann::json GetDocument(std::uint64_t id) { return storage[INDEX][id]; }