AshGraphql.Api (ash_graphql v0.20.1) View Source
The entrypoint for adding graphql behavior to an Ash API
DSL Documentation
Index
Docs
graphql
Global configuration for graphql
Examples:
graphql do
authorize? false # To skip authorization for this API
end
:authorize?
- Whether or not to perform authorization for this API The default value istrue
.:root_level_errors?
- By default, mutation errors are shown in their result object's errors key, but this setting places those errors in the top level errors list The default value isfalse
.:error_handler
- Set an MFA to intercept/handle any errors that are generated. The default value is{AshGraphql.DefaultErrorHandler, :handle_error, []}
.:show_raised_errors?
- For security purposes, if an error is raised then Ash simply shows a generic error. If you want to show those errors, set this to true. The default value isfalse
.:debug?
- Whether or not to log (extremely verbose) debug information The default value isfalse
.