Untitled
unknown
plain_text
a year ago
574 B
3
Indexable
Never
import { CodegenConfig } from '@graphql-codegen/cli'; import env from '/tmp/token.json'; const config: CodegenConfig = { schema: [ { 'http://localhost:20002/graphql': { headers: { Authorization: env.TOKEN, }, }, }, ], documents: ['src/**/*.tsx'], generates: { './src/__generated__/': { preset: 'client', plugins: [], presetConfig: { gqlTagName: 'gql', }, config: { maybeValue: 'T | undefined', }, }, }, ignoreNoDocuments: true, }; export default config;