Skip to content
Prev Previous commit
Next Next commit
updates
  • Loading branch information
bmullan91 committed Mar 13, 2019
commit 5b1ca97183e74515fe40f7963494ef72d8f02b3c
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ function MyComponent() {
- [Authentication](#Authentication)
- [Fragments](#Fragments)
- [Migrating from Apollo](#Migrating-from-Apollo)
- [ApolloClient -> GraphQLClient](#ApolloClient-->-GraphQLClient)
- [ApolloClient ➡️ GraphQLClient](#ApolloClient-➡️-GraphQLClient)

## API

Expand Down Expand Up @@ -491,7 +491,7 @@ Alot of the options you'd pass to `ApolloClient` are the same as `GraphQLClient`
- `fetch`
- `cache`

### ApolloProvider -> ClientContext.Provider
### ApolloProvider ➡️ ClientContext.Provider

```diff
- import { ApolloProvider } from 'react-apollo'
Expand Down Expand Up @@ -535,7 +535,7 @@ function MyComponent() {

Alot of options can be carried over as-is, or have direct replacement:

- `query`: No need to wrap the query in `gql`
- `query` ➡️ `useQuery(query)`: No need to wrap the query in `gql`
- `variables` ➡️ `useQuery(query, { variables })`
- `ssr` ➡️ `useQuery(query, { ssr })`
- FetchPolicies: See [#75](https://github.com/nearform/graphql-hooks/issues/75) for a more info
Expand Down