MCPcopy Create free account
hub / github.com/Fernanda-Kipper/text-editor / generateUpdateBodyQuery

Function generateUpdateBodyQuery

src/hooks/useFileEdit.ts:22–30  ·  view source on GitHub ↗
(mutation: Partial<File>)

Source from the content-addressed store, hash-verified

20`
21
22const generateUpdateBodyQuery = (mutation: Partial<File>) => `
23 mutation {
24 updateFile(where: {id: "${mutation.id}"}, data: {
25 body: ${mutation.body}
26 }){
27 slug
28 }
29 }
30`
31
32const fetcher = (query: string) => customFetcher<EditFileResponse>(query)
33 .then(res => res.data.data);

Callers 1

updateBodyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…