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

Validates document to ensure that all arguments are in the schema.

Note: while graphql-js doesn’t add errors to unknown arguments that are provided to unknown fields, Absinthe does — but when the errors are harvested from the Blueprint tree, only the first layer of unknown errors (eg, the field) should be presented to the user.

Summary

Functions

any_invalid?(nodes)
directive_error_message(argument_name, directive_name)
directive_error_message(String.t, String.t) :: String.t

Generate an error for a directive argument

field_error_message(argument_name, field_name, type_name)
field_error_message(String.t, String.t, String.t) :: String.t

Generate an error for a field argument

flag_invalid(node)
flag_invalid(Blueprint.node_t) :: Blueprint.node_t
flag_invalid(node, flag)
flag_invalid(Blueprint.node_t, atom) :: Blueprint.node_t
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.