GraphQL Tools is a set of utility functions and classes for building and manipulating GraphQL schemas, creating executable schemas from type definitions, and stitching schemas together. Version 9.x is the current stable release with a moderate release cadence, supporting GraphQL.js ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 and requiring Node >=16. It ships TypeScript types. Key differentiators: it provides a cohesive toolkit that complements graphql-js with features like schema stitching, mock generation, and operation transformation, widely used in the Apollo ecosystem.
npm install graphql-toolsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates an executable schema from type definitions and resolvers, then adds mocks to the schema.
Use imports from specific subpackages like @graphql-tools/schema.
Use named imports from subpackages.
Replace mergeSchemas with stitchSchemas.
Ensure resolver keys match type names and field names exactly.
Use the `resolvers` option in addMocksToSchema to preserve some resolvers.
Install the required subpackage, e.g., `npm install @graphql-tools/schema`.
Change import to `import { makeExecutableSchema } from '@graphql-tools/schema'`.Check that all types referenced in the schema are defined and correctly spelled.
Ensure each type is defined only once unless using schema extension syntax.