Last active
May 7, 2020 22:49
-
-
Save lorensr/6dee54b5a9789283d2fba182062031ea to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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