1import { CodegenConfig } from '@graphql-codegen/cli';
2
3const config: CodegenConfig = {
4 schema: './schema.graphql',
5 documents: ['src/**/*.tsx'],
6 ignoreNoDocuments: true, // for better experience with the watcher
7 generates: {
8 './src/gql/': {
9 preset: 'client',
10 },
11 },
12};
13
14export default config;