make-apollo-client
v0.1.8
Published
Create an apollo config to connect to your apollo server
Downloads
35
Readme
Apollo Client Setup
Connect your apollo client to your graphql provider
Installation
npm install make-apollo-clientUsage
import { ApolloProviderComponent } from "make-apollo-client"
<ApolloProviderComponent authToken={<token>} httpUrl={<http_url>} wsUrl={<websocket_url>}>
// your component that will use graphql
</ApolloProviderComponent>Or use Apollo client only
import { makeApolloClient } from "make-apollo-client"
const client = makeApolloClient({ authToken, httpUrl, wsUrl });