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

Function generateUpdateFavoriteQuery

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

Source from the content-addressed store, hash-verified

10}
11
12const generateUpdateFavoriteQuery = (mutation: Partial<File>) => `
13 mutation {
14 updateFile(where: {id: "${mutation.id}"}, data: {
15 favorite: ${mutation.favorite}
16 }){
17 slug
18 }
19 }
20`
21
22const generateUpdateBodyQuery = (mutation: Partial<File>) => `
23 mutation {

Callers 1

updateFavoriteFunction · 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…