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

Method getDoc

packages/common/storage/document-database.ts:25–32  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

23 }
24
25 async getDoc(id: string): Promise<PersistedFullWorkflow> {
26 const ret = await this.documents.getDocument(id);
27 if (ret.success) {
28 return ret.data
29 } else {
30 throw new Error("Get Doc failed: " + ret.error);
31 }
32 }
33
34 async createDoc(docMeta: PersistedFullWorkflow) {
35 const ret = await this.documents.createDocument(docMeta.id, docMeta);

Callers 4

loadSubflowToStoreFunction · 0.45
useLiveDocFunction · 0.45
JSONDBClass · 0.45
serveFunction · 0.45

Calls 1

getDocumentMethod · 0.80

Tested by

no test coverage detected