AshGraphql.Api (ash_graphql v0.19.0) View Source

The entrypoint for adding graphql behavior to an Ash API

Table of Contents

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

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

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

  • :stacktraces? - Whether or not to include stacktraces in generated errors The default value is true.

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

Link to this section Summary

Link to this section Functions