0.1.8 • Published 4 years ago

make-apollo-client v0.1.8

Weekly downloads
35
License
-
Repository
github
Last release
4 years ago

Apollo Client Setup

Connect your apollo client to your graphql provider

Installation

npm install make-apollo-client

Usage

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 });