MCPcopy Create free account
hub / github.com/6174/comflowyspace / getDocument

Method getDocument

packages/common/jsondb/jsondb.client.ts:50–53  ·  view source on GitHub ↗

* Get a document * @param id * @returns

(id: string)

Source from the content-addressed store, hash-verified

48 * @returns
49 */
50 async getDocument(id: string): Promise<JSONDBReponse> {
51 const response = await fetch(getBackendUrl(`/db/collection/${this.collectionName}/${id}`));
52 return response.json();
53 }
54
55 /**
56 * Update a document

Callers 1

getDocMethod · 0.80

Calls 1

getBackendUrlFunction · 0.90

Tested by

no test coverage detected