Tools

A set of utilities for faster GraphQL development

GraphQL Tools is a collection of npm packages that provides a structured approach to building GraphQL schemas and resolvers in JavaScript, following the GraphQL-first development workflow. Part of the Hive ecosystem by The Guild.

Everything GraphQL

From SDL to an executable schema

Write the schema in the GraphQL schema language, add a resolver map, and get a GraphQLSchema any server can execute.

Build a schema
import { makeExecutableSchema } from '@graphql-tools/schema';

const typeDefs = /* GraphQL */ `
  type Query {
    hello(name: String): String!
  }
`;

const resolvers = {
  Query: {
    hello: (_root, { name }) => `Hello, ${name ?? 'world'}!`,
  },
};

export const schema = makeExecutableSchema({ typeDefs, resolvers });

Learn more

Discover the complete ecosystem of tools and libraries

Complete GraphQL Federation Stack

Our libraries to support all your GraphQL needs

Explore the Ecosystem