MCPcopy Create free account
hub / github.com/triggerdotdev/jsonhero-web / getDocument

Function getDocument

app/jsonDoc.server.ts:106–114  ·  view source on GitHub ↗
(
  slug: string
)

Source from the content-addressed store, hash-verified

104}
105
106export async function getDocument(
107 slug: string
108): Promise<JSONDocument | undefined> {
109 const doc = await DOCUMENTS.get(slug);
110
111 if (!doc) return;
112
113 return JSON.parse(doc);
114}
115
116export async function updateDocument(
117 slug: string,

Callers 4

loaderFunction · 0.90
loaderFunction · 0.90
actionFunction · 0.90
updateDocumentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected