Last active
August 17, 2018 12:36
-
-
Save aswinmprabhu/0d867878093b764de87c4a965f811f42 to your computer and use it in GitHub Desktop.
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'; | |
const makeMergedSchema = async () => { | |
const userSchema = await createRemoteExecutableSchema(); | |
const customResolver = makeCustomResolver(userSchema); | |
// merge the two schemas | |
const mergedSchema = mergeSchemas({ | |
schemas: [userSchema], | |
resolvers: customResolver, | |
}); | |
return mergedSchema; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment