Sign up for Hasura Newsletter

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.

Of course 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.

Did you find this page helpful?
Start with GraphQL on Hasura for Free
  • ArrowBuild apps and APIs 10x faster
  • ArrowBuilt-in authorization and caching
  • Arrow8x more performant than hand-rolled APIs
Promo
footer illustration
Brand logo
© 2022 Hasura Inc. All rights reserved
Github
Titter
Discord
Facebook
Instagram
Youtube
Linkedin