Skip to content

Instantly share code, notes, and snippets.

@aofleejay
Last active October 11, 2017 04:06
Show Gist options
  • Save aofleejay/78dfd54030e2795bf871a10643376268 to your computer and use it in GitHub Desktop.
Save aofleejay/78dfd54030e2795bf871a10643376268 to your computer and use it in GitHub Desktop.
Merge schema with Schema Stitching
import { mergeSchemas } from 'graphql-tools'
import fooSchema from './foo' // export default makeExecutableSchema({ typeDefs: fooTypeDefinitions })
import barSchema from './bar' // export default makeExecutableSchema({ typeDefs: barTypeDefinitions })
export default mergeSchemas({
schemas: [fooSchema, barSchema],
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment