Untitled
unknown
plain_text
2 years ago
574 B
11
Indexable
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;
Editor is loading...