MCPcopy Create free account
hub / github.com/InfinitiBit/graphbit / get_all

Method get_all

javascript/src/lib.rs:276–284  ·  view source on GitHub ↗
(&self, scope: Option<JsScope>)

Source from the content-addressed store, hash-verified

274 /// Get all memories matching a scope.
275 #[napi]
276 pub async fn get_all(&self, scope: Option<JsScope>) -> Result<Vec<JsMemory>> {
277 let core_scope = js_scope_to_core(scope);
278 let memories = self
279 .service
280 .get_all(&core_scope)
281 .await
282 .map_err(to_napi_error)?;
283 Ok(memories.into_iter().map(core_memory_to_js).collect())
284 }
285
286 /// Update a memory's content.
287 #[napi]

Callers

nothing calls this directly

Calls 1

js_scope_to_coreFunction · 0.85

Tested by

no test coverage detected