Type IGraphQLProjects | IGraphQLProject | IGraphQLProjectLegacy
File match graphql.config.json graphql.config.yaml graphql.config.yml .graphqlrc .graphqlrc.json .graphqlrc.yaml .graphqlrc.yml
Schema URL https://catalog.lintel.tools/schemas/schemastore/graphql-config/latest.json
Source https://unpkg.com/graphql-config/config-schema.json

Validate with Lintel

npx @lintel/lintel check

Structure of GraphQL Config

Any of

Definitions

DocumentPointer string[] | string
IExtensions Record<string, any>

Configuration of each used extension

IGraphQLProject object

GraphQL Project

schema object | object | string[] | string required
documents string[] | string
extensions Record<string, any>

Configuration of each used extension

IGraphQLProjectLegacy object

Legacy structure of GraphQL Config v2

schemaPath string required
excludes string[]
extensions Record<string, any>

Configuration of each used extension

includes string[]
IGraphQLProjects object

Multiple named projects

projects Record<string, IGraphQLProject | IGraphQLProjectLegacy> required
SchemaPointer object | object | string[] | string
WithList<string> string[] | string