GraphQL Config lets teams declare schema and operation locations once in YAML, JSON, or TypeScript. Editors, linters, and codegen tools read the same file through a shared loading API.
Overview
GraphQL Config is a configuration standard and library for GraphQL projects. Instead of repeating schema paths, document globs, and per-tool settings in many places, you describe them in a single file that most GraphQL tools, editors, and IDEs understand.
Developers point the file at their schema and operation documents and can attach extension blocks so individual tools keep their own settings inside the same configuration. The format supports multiple projects, environment variables, and tool-specific extensions in one place.
Library authors can use the packaged API and helper methods to load configuration, resolve schemas, and read operation files without maintaining their own parsers. End users install the library, author a config file, and wire their toolchain to it.
The project is part of The Guild’s Hive ecosystem and is adopted by tools such as GraphQL Code Generator, GraphQL ESLint, and editor plugins. A migration path exists from the legacy `.graphqlconfig` format.
Key features
- Single file for schema and documents
- YAML, JSON, and TypeScript config formats
- Multiple projects in one file
- Per-tool extension settings
- Shared library API for tool authors
- Environment variable support
- Wide editor and IDE adoption
- Migration from legacy graphqlconfig
Use cases
- Central GraphQL toolchain setup
- IDE and editor GraphQL integration
- Codegen and lint project configuration
- Multi-project GraphQL monorepos
- Custom tools reading GraphQL config