Dev Mode

In local dev with custom code written, you may want to see the exact details of the webhook call for the custom code handler like Hasura Actions.

Enable Dev Mode

Head to Hasura Cloud dashboard to the project settings and add a new ENV var.

The new env var would be HASURA_GRAPHQL_DEV_MODE with a boolean true.

Enable Dev Mode

Once this is enabled, this would add an extensions key to the errors object of the response. The internal key contains error information including the generated SQL statement and exception information from Postgres.

Ofcourse it is highly recommended to enable this dev mode only in dev/staging environments and also for just the admin role. To force the extensions to work only for the admin role, we can add a new env var called HASURA_GRAPHQL_ADMIN_INTERNAL_ERRORS boolean with a true value.


Get Started with GraphQL Now

Hasura Cloud gives you a fully managed, production ready GraphQL API as a service to help you build modern apps faster.
Ready to get started?
Start for free on Hasura Cloud or you could contact our sales team for a detailed walk-through on how Hasura may benefit your business.
Stay in the know
Sign up for full access to our community highlights, new features, and occasional baby animal gifs! Oh, and we have a strict no-spam rule. ✌️