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