graphql-python / graphene-gae

GraphQL Support for Google AppEngine [DEPRECATED - Looking for maintainers]
http://docs.graphene-python.org/projects/gae/en/latest/
BSD 3-Clause "New" or "Revised" License
117 stars 14 forks source link

Feature/handle errors in handler #23

Closed ekampf closed 8 years ago

ekampf commented 8 years ago

Added a _handle_graphql_errors(errors) hook to GraphQLHandle allowing processing errors after graphql finished execution.

The use case for this is that sometimes we want to turn certain GraphQL errors into http errors. Forexample if we're doing authentication login in the resolvers and want to convert authentication errors to 401 status response.

coveralls commented 8 years ago

Coverage Status

Coverage increased (+0.07%) to 91.758% when pulling bf84fab1f0a3f9096473ad3630462b20b75d469a on feature/handle_errors_in_handler into 73642ce0ce83fe59e8a2acff20eb84fe4015e54a on master.