AshPhoenix (ash_phoenix v0.5.8) View Source

General helpers for AshPhoenix.

These will be deprecated at some point, once the work on AshPhoenix.Form is complete.

Link to this section Summary

Link to this section Functions

Link to this function

errors_for(changeset_or_query, opts \\ [])

View Source


errors_for(Ash.Changeset.t() | Ash.Query.t(), Keyword.t()) ::
  [{atom(), {String.t(), Keyword.t()}}] | [String.t()] | map()

Gets all errors on a changeset or query.

This honors the AshPhoenix.FormData.Error protocol and applies any transform_errors. See transform_errors/2 for more information.

Link to this function


View Source