Skip to content

Instantly share code, notes, and snippets.

@reyhansofian
Created July 23, 2017 09:11
Show Gist options
  • Save reyhansofian/034ba442da110b85670d6c72b30ff423 to your computer and use it in GitHub Desktop.
Save reyhansofian/034ba442da110b85670d6c72b30ff423 to your computer and use it in GitHub Desktop.
import { 
ApolloClient, 
ApolloProvider, 
createNetworkInterface,
} from ‘react-apollo’;
const client = new ApolloClient({
networkInterface: createNetworkInterface({
uri: ‘GRAPHQL_SERVER_ENDPOINT’,
}),
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment