Mirror: TypeScript LSP plugin that finds GraphQL documents in your code and provides diagnostics, auto-complete and hover-information.
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;