absinthe v1.2.0-alpha.1 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)

Specs

error_message(String.t, nil | String.t) :: String.t

Generate an error message for an unused variable.

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
handle_node(node, operations)
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.