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

Validates that all leaf nodes are scalars.

Examples:

Assume user field is an object, and email is a scalar.

DO NOT

{
  user
}

DO

{
  user {name email}
}

DO NOT

{
  email { fields on scalar }
}

DO

{
  email
}

Summary

Functions

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

Generate the error message for an extraneous field subselection.

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

Generate the error message for a missing field subselection.

run(input, options \\ [])

Run the validation.