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

Function generateCreatorQuery

src/hooks/useFile.ts:5–12  ·  view source on GitHub ↗
(slug: string)

Source from the content-addressed store, hash-verified

3import { FetchFileResponse } from '../types/api-response'
4
5const generateCreatorQuery = (slug: string) => `
6 query {
7 file(where: {slug: "${slug}"}) {
8 body,
9 id
10 }
11 }
12`
13
14const fetcher = (query: string) => customFetcher<FetchFileResponse>(query)
15 .then(res => res.data.data);

Callers 1

useFileFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…