absinthe v1.2.0-beta.0 Absinthe.Phase.Document.Validation.NoUnusedVariables

Validates document to ensure that the only variables that are used in a document are defined on the operation.

Summary

Functions

any_invalid?(nodes)
error_message(name, operation_name)
error_message(String.t, nil | String.t) :: String.t

Generate an error message for an unused variable.

flag_invalid(node)
flag_invalid(Blueprint.node_t) :: Blueprint.node_t
flag_invalid(node, flag)
flag_invalid(Blueprint.node_t, atom) :: Blueprint.node_t
handle_node(node, operations)
inherit_invalid(node, children, add_flag)
put_error(node, error)
put_error(Blueprint.node_t, Absinthe.Phase.Error.t) :: Blueprint.node_t
put_flag(node, flag)
run(input, options \\ [])

Run the validation.