Last active
October 11, 2017 04:06
-
-
Save aofleejay/78dfd54030e2795bf871a10643376268 to your computer and use it in GitHub Desktop.
Merge schema with Schema Stitching
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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