Skip to content

Instantly share code, notes, and snippets.

View wildseansy's full-sized avatar

Sean Holbert wildseansy

View GitHub Profile
@elliottsj
elliottsj / mergeSchemas.ts
Last active January 28, 2021 04:29
An example of using Apollo graphql-tools `mergeSchemas` to delegate to a non-root sub-field
import { GraphQLSchema, Kind } from 'graphql';
import {
makeExecutableSchema,
mergeSchemas,
transformSchema,
RenameRootFields,
RenameTypes,
WrapQuery,
} from 'graphql-tools';