Skip to content

Commit

Permalink
Merge branch 'apollographql:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
alfondotnet authored Oct 15, 2021
2 parents baa67a3 + f202880 commit 70e9f7c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ An Apollo Link to easily try out GraphQL without a full server. It can be used t
## Installation

```bash
npm install apollo-link-rest apollo-link graphql graphql-anywhere qs --save # or `yarn add apollo-link-rest apollo-link graphql graphql-anywhere qs`
npm install apollo-link-rest apollo-link graphql graphql-anywhere qs --save
or
yarn add apollo-link-rest apollo-link graphql graphql-anywhere qs
```

`apollo-link`, `graphql`, `qs` and `graphql-anywhere` are peer dependencies needed by `apollo-link-rest`.
Expand Down
2 changes: 1 addition & 1 deletion docs/rest.md
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,7 @@ mutation encryptedPost(
##### `bodySerializer`

If you need to serialize your data differently (say as form-encoded), you can provide a `bodySerializer` instead of relying on the default JSON serialization.
`bodySerializer` can be either a function of the form `(data: any, headers: Headers) => {body: any, header: Headers}` or a string key. When using the string key
`bodySerializer` can be either a function of the form `(data: any, headers: Headers) => {body: any, headers: Headers}` or a string key. When using the string key
`RestLink` will instead use the corresponding serializer from the `bodySerializers` object that can optionally be passed in during initialization.

```graphql
Expand Down
2 changes: 1 addition & 1 deletion examples/simple/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import Person from './Person';
import './App.css';

const restLink = new RestLink({
uri: 'https://swapi.co/api/',
uri: 'https://swapi.dev/api/',
});

const client = new ApolloClient({
Expand Down

0 comments on commit 70e9f7c

Please sign in to comment.