Skip to content

Commit

Permalink
Merge pull request #6 from pragmaticivan/feature/update-readme
Browse files Browse the repository at this point in the history
chore: update readme adding errorsCheck and parseAndHandleHttpResponse documentation
  • Loading branch information
jkusachi authored Apr 8, 2019
2 parents 70907b7 + 6ec956c commit 066f19e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ The only *REQUIRED* variable to date is `actionType`
- `actionRollbackSuffix` - Suffix of the action type when a rollback occurs _Default: "ROLLBACK"_
- `options` - Suffix of the action type when a rollback occurs _Default: "ROLLBACK"_
- `payloadFormatter(payload)` Optional Function to format the response coming back from GraphQL on a successful retrieval. `payload` is provided as a parameter. This function returns back the modified data. This is a good place to run data normalizations

- `errorsCheck(result)` Optional Function to give the client the choice for whether it should throw an error if errors are present on GraphQL response. It throws an error by default if function is not provided.
- `parseAndHandleHttpResponse(operation, result)` Optional Function to give the client the choice for whether it should throw an error if there's an HTTP/GraphQL schema error present on GraphQL response. It throws an error by default if the function is not provided.

---

Expand Down

0 comments on commit 066f19e

Please sign in to comment.