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

Validates an operation name was provided when needed.

Summary

Functions

any_invalid?(nodes)
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)
no_subselection_allowed_message(field_name, type_name)

Specs

no_subselection_allowed_message(String.t, String.t) :: String.t

Generate the error message for an extraneous field subselection.

put_error(node, error)

Specs

put_error(Blueprint.node_t, Absinthe.Phase.Error.t) :: Blueprint.node_t
put_flag(node, flag)
required_subselection_message(field_name, type_name)

Specs

required_subselection_message(String.t, String.t) :: String.t

Generate the error message for a missing field subselection.

run(input, options \\ [])

Run the validation.