absinthe v1.2.0-alpha.1 Absinthe.Phase.Document.Validation.NoFragmentCycles

Ensure that document doesn’t have any fragment cycles that could result in a loop during execution.

Note that if this phase fails, an error should immediately be given to the user.

Summary

Functions

any_invalid?(nodes)
do_run(input, map)

Specs

do_run(Absinthe.Blueprint.t, %{validation_result_phase: Absinthe.Phase.t}) :: Absinthe.Phase.result_t
error_message(fragment_name, list)

Specs

error_message(String.t, [String.t]) :: String.t

Generate the error message.

flag_invalid(node)

Specs

flag_invalid(Blueprint.node_t) :: Blueprint.node_t
flag_invalid(node, flag)

Specs

flag_invalid(Blueprint.node_t, atom) :: Blueprint.node_t
inherit_invalid(node, children, add_flag)
put_error(node, error)

Specs

put_error(Blueprint.node_t, Absinthe.Phase.Error.t) :: Blueprint.node_t
put_flag(node, flag)
run(input, options \\ [])

Run the validation.