Skip to content

Commit f202880

Browse files
authored
Merge pull request #285 from albertmourato/fix-typo
Fix typo when defining type for bodySerializer on 'bodySerializer' section
2 parents 23edd85 + 6a722a2 commit f202880

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: docs/rest.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -594,7 +594,7 @@ mutation encryptedPost(
594594
##### `bodySerializer`
595595

596596
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.
597-
`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
597+
`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
598598
`RestLink` will instead use the corresponding serializer from the `bodySerializers` object that can optionally be passed in during initialization.
599599

600600
```graphql

0 commit comments

Comments
 (0)