Created
August 13, 2019 07:33
-
-
Save epalaz/ce370c892baeb52b8b503956816be51c to your computer and use it in GitHub Desktop.
Apollo Client
This file contains hidden or 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
const apolloCache = new InMemoryCache() | |
const uploadLink = createUploadLink({ | |
uri: 'http://localhost:4000', // Apollo Server is served from port 4000 | |
headers: { | |
"keep-alive": "true" | |
} | |
}) | |
const client = new ApolloClient({ | |
cache: apolloCache, | |
link: uploadLink | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment