Skip to content

Instantly share code, notes, and snippets.

@daniele-zurico
Created July 8, 2019 10:08
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 daniele-zurico/3ca0dcadcdc66ad218d4a3eb12581312 to your computer and use it in GitHub Desktop.
Save daniele-zurico/3ca0dcadcdc66ad218d4a3eb12581312 to your computer and use it in GitHub Desktop.
const {ApolloServer} = require('apollo-server');
const server = new ApolloServer({
modules: [
require('./modules/author'),
require('./modules/books')
]
})
server
.listen()
.then(({url}) => console.log(`server is running at ${url}`));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment