Dev Mode

In your local dev environment 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 the project settings in the Hasura Cloud dashboard and add a new env var. The new env var should be HASURA_GRAPHQL_DEV_MODE with the value set to true.

Enable Dev Mode

Once enabled, this adds 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 the dev mode only in dev/staging environments and only for the admin role. To force the extensions to work only for the admin role, add a new env var called HASURA_GRAPHQL_ADMIN_INTERNAL_ERRORS and set it to true.

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
© 2024 Hasura Inc. All rights reserved
Github
Titter
Discord
Facebook
Instagram
Youtube
Linkedin