Created
January 11, 2017 14:32
-
-
Save Thunderbird7/bb14afafc3b27ec524fdcd800735cd21 to your computer and use it in GitHub Desktop.
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
import ApolloClient, { createNetworkInterface } from 'apollo-client' | |
export default function client() { | |
const networkInterface = createNetworkInterface({ | |
uri: 'https://localhost/graphql' | |
}) | |
const apolloClient = new ApolloClient({ networkInterface }) | |
return apolloClient | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment