import { CodegenConfig } from '@graphql-codegen/cli'; const config: CodegenConfig = { schema: 'https://graphql.org/graphql/', documents: ['src/**/*.tsx', '!src/gql/**/*'], generates: { './src/gql/': { preset: 'client', }, }, hooks: { afterAllFileWrite: ['prettier --write'] }, }; export default config;