AshGraphql.Errors (ash_graphql v1.10.0)

Copy Markdown View Source

Utilities for working with errors in custom resolvers.

Summary

Functions

Transform an error or list of errors into the response for graphql.

Transform an error or list of errors into the response for graphql.

Functions

to_errors(errors, context, domain, resource, action)

Transform an error or list of errors into the response for graphql.

to_errors(errors, context, domain, resource, action, graphql_path)

Transform an error or list of errors into the response for graphql.

Accepts an optional graphql_path parameter which should be the GraphQL input path (e.g., ["input", "override"]) from the resolution.