Skip to content

Instantly share code, notes, and snippets.

@aswinmprabhu
Last active August 17, 2018 12:36
Show Gist options
  • Save aswinmprabhu/0d867878093b764de87c4a965f811f42 to your computer and use it in GitHub Desktop.
Save aswinmprabhu/0d867878093b764de87c4a965f811f42 to your computer and use it in GitHub Desktop.
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