Skip to content

Commit

Permalink
Fix typo when defining type for bodySerializer on 'bodySerializer' se…
Browse files Browse the repository at this point in the history
…ction
  • Loading branch information
albertininm committed Apr 26, 2021
1 parent 23edd85 commit 6a722a2
Showing 1 changed file with 1 addition and 1 deletion.
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

0 comments on commit 6a722a2

Please sign in to comment.