Skip to content

Instantly share code, notes, and snippets.

@unicodeveloper
Last active August 27, 2018 01:35
Show Gist options
  • Save unicodeveloper/b3ca569eebac1ac032e0a828a22542b9 to your computer and use it in GitHub Desktop.
Save unicodeveloper/b3ca569eebac1ac032e0a828a22542b9 to your computer and use it in GitHub Desktop.
import { ApolloServer, gql } from 'apollo-server';
import { MvrpAPI } from './datasource';
...
...
const server = new ApolloServer({
typeDefs,
resolvers,
dataSources: () => ({
mvrpAPI: new MvrpAPI()
})
});
server.listen().then(({ url }) => {
console.log(`🚀 Server ready at ${url}`)
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment