Skip to content

Commit

Permalink
Merge pull request #285 from albertmourato/fix-typo
Browse files Browse the repository at this point in the history
Fix typo when defining type for bodySerializer on 'bodySerializer' section
  • Loading branch information
fbartho authored May 11, 2021
2 parents 23edd85 + 6a722a2 commit f202880
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 f202880

Please sign in to comment.