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

Specs

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)

Specs

field_error_message(String.t, String.t, String.t) :: String.t

Generate an error for a field argument

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.