Created
May 5, 2018 13:01
-
-
Save komkanit/567aca6a97928892e574e577fa5d544a 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 { HttpLink } from 'apollo-link-http'; | |
import { InMemoryCache } from 'apollo-cache-inmemory'; | |
const httpLink = new HttpLink({ | |
uri: 'http://localhost:8080/graphql', | |
}); | |
const client = new ApolloClient({ | |
link: httpLink, | |
cache: new InMemoryCache(), | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment