Docs
I'm a User
Specifying Documents

Specifying Documents

GraphQL Config supports not only a schema but GraphQL Operations and Fragments too.

Multiple Files

You can specify a list of files:

documents:
  - ./documents/foo.graphql
  - ./documents/bar.graphql
  - ./documents/baz.graphql

Use a glob pattern to find and include operations and fragments:

documents: ./documents/*.graphql

GraphQL Config reads any matching files and parses them into DocumentNode objects.