absinthe v1.2.0-alpha.1 Absinthe.Phase.Document.Arguments.Coercion
Coerce variable string inputs to enums when appropriate.
A literal enum like foo(arg: ENUM)
is parsed as an Input.Enum
struct.
However when a variable is used foo(arg: $enumVar)
the variable input ends up
being an Input.String
because the variable handler does not yet know the
schema type. This phase coerces string to enum inputs when the schema type
is an Enum.
This may be merged into another phase in the future.
Summary
Functions
Specs
put_error(Blueprint.node_t, Absinthe.Phase.Error.t) :: Blueprint.node_t