GraphQL Tools is a JavaScript toolkit for building, mocking, and stitching GraphQL schemas from schema definition language. It produces schemas compatible with GraphQL.js and common Node servers.
Overview
GraphQL Tools supports a GraphQL-first workflow in JavaScript and TypeScript. You describe types in the GraphQL schema language, attach resolver maps, and combine them into an executable schema with helpers such as makeExecutableSchema.
The packages cover mocking APIs with per-type mock resolvers, loading type definitions and documents from files or remote sources, merging modular schemas, and composing middleware-style resolver wrappers. Stitching tools can unite multiple schemas into one gateway API.
Generated schemas work with servers such as GraphQL Yoga, Apollo GraphQL, and express-graphql. The Guild maintains the project as part of the Hive ecosystem, with documentation, API references, and changelogs per package.
The design keeps schema text and resolver logic separable so large projects can split types and resolvers across files while sharing one runtime schema object.
Key features
- SDL-first schema generation
- makeExecutableSchema helper
- Per-type GraphQL API mocking
- Schema stitching across services
- Modular type and resolver merging
- Document and schema loaders
- Middleware-style resolver composition
- Works with GraphQL Yoga and express-graphql
Use cases
- Prototyping GraphQL APIs without backends
- Federated or stitched multi-service GraphQL gateways
- Splitting large GraphQL codebases into modules
- JavaScript GraphQL servers needing executable schemas