VBT.Absinthe.Schema.NormalizeErrors (vbt v0.1.0) View Source
Middleware which converts Ecto.Changeset
errors into absinthe compatible errors.
The simplest way to use this middleware is via VBT.Absinthe.Schema
, which will automatically
install this middleware to every field. Alternatively, you can install middleware manually, using
standard absinthe mechanisms.
Once the middleware is installed, you can safely return {:error, Ecto.Changeset.t}
from your
resolvers.