18 lines
378 B
TypeScript
18 lines
378 B
TypeScript
import type { CodegenConfig } from '@graphql-codegen/cli';
|
|
|
|
const config: CodegenConfig = {
|
|
schema: 'http://127.0.0.1:5001/api/graphql/introspection',
|
|
documents: ['src/**/*.{ts,tsx}'],
|
|
generates: {
|
|
'./src/infra/graphql/gql/': {
|
|
plugins: [],
|
|
preset: 'client',
|
|
presetConfig: {
|
|
gqlTagName: 'gql',
|
|
},
|
|
},
|
|
},
|
|
};
|
|
|
|
export default config;
|