Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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