View Source AshGraphql.Api (ash_graphql v0.26.0)
The entrypoint for adding graphql behavior to an Ash API
dsl-documentation
DSL Documentation
index
Index
docs
Docs
graphql
graphql
Global configuration for graphql
Examples:
graphql do
authorize? false # To skip authorization for this API
end
:authorize?
(boolean/0
) - Whether or not to perform authorization for this API The default value istrue
.:tracer
(atom/0
) - A tracer to use to trace execution in the graphql. Will useconfig :ash, :tracer
if it is set.:root_level_errors?
(boolean/0
) - 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?
(boolean/0
) - 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?
(boolean/0
) - Whether or not to log (extremely verbose) debug information The default value isfalse
.