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 is true.

  • :tracer (atom/0) - A tracer to use to trace execution in the graphql. Will use config :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 is false.

  • :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 is false.

  • :debug? (boolean/0) - Whether or not to log (extremely verbose) debug information The default value is false.

Link to this section Summary

Link to this section Functions

This function is deprecated. See `AshGraphql.Api.Info.authorize?/1`.

See AshGraphql.Api.Info.authorize?/1.

This function is deprecated. See `AshGraphql.Api.Info.debug?/1`.

See AshGraphql.Api.Info.debug?/1.

Link to this function

global_type_definitions(schema, env)

View Source
This function is deprecated. See `AshGraphql.Api.Info.root_level_errors?/1`.

See AshGraphql.Api.Info.root_level_errors?/1.

Link to this function

show_raised_errors?(api)

View Source
This function is deprecated. See `AshGraphql.Api.Info.show_raised_errors?/1`.

See AshGraphql.Api.Info.show_raised_errors?/1.