Skip to content

Instantly share code, notes, and snippets.

@aswinmprabhu
Last active August 17, 2018 12:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aswinmprabhu/7d7c863854558a88b981adfc5bac5ef0 to your computer and use it in GitHub Desktop.
Save aswinmprabhu/7d7c863854558a88b981adfc5bac5ef0 to your computer and use it in GitHub Desktop.
// serve the merged schema
makeMergedSchema().then(mergedSchema => {
// Create a new apollo server
const server = new ApolloServer({ schema:mergedSchema });
server.listen({port: 3000})
.then(({ url }) => {
console.log(`🚀 Server ready at ${url}`);
})
.catch(err => console.log(err));
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment