# GraphQL Config: one file for the IDE (vscode-graphql) and GraphQL Code Generator. # - default: IntelliSense + generated TS (uses committed schema.graphql). # - introspect: refresh schema.graphql from Strapi (needs Strapi up): npm run graphql:schema projects: default: schema: ./schema.graphql documents: ./src/**/*.gql.ts extensions: codegen: ignoreNoDocuments: true generates: # Same as client-preset graphql.ts output, without gql.ts (gql-tag map / gen-dts). src/graphql/graphql.ts: plugins: - add: content: "/* eslint-disable */" - typescript: inputMaybeValue: T | null | undefined - typescript-operations: {} - typed-document-node: {} config: useTypeImports: true documentMode: string introspect: schema: http://localhost:1337/graphql documents: ./src/**/*.gql.ts extensions: codegen: ignoreNoDocuments: true generates: ./schema.graphql: plugins: - schema-ast