• 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:

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

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

yaml
documents: ./documents/*.graphql

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

Last updated on July 27, 2022