Skip to content

Instantly share code, notes, and snippets.

@lorensr
Last active May 7, 2020 22:49
Show Gist options
  • Save lorensr/6dee54b5a9789283d2fba182062031ea to your computer and use it in GitHub Desktop.
Save lorensr/6dee54b5a9789283d2fba182062031ea to your computer and use it in GitHub Desktop.
import FooClient from 'imaginary-foo-library'
import MyFooDB from './MyFooDB'
const fooClient = new FooClient({ uri: 'https://foo.graphql.guide:9001' })
const server = new ApolloServer({
typeDefs,
resolvers,
dataSources: () => ({
myFoos: new MyFooDB(fooClient)
})
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment