variablesAreInputTypesRule function

Visitor variablesAreInputTypesRule(
  1. ValidationCtx ctx
)

Variables are input types

A GraphQL operation is only valid if all the variables it defines are of input types (scalar, enum, or input object).

See https://spec.graphql.org/draft/#sec-Variables-Are-Input-Types

Implementation

Visitor variablesAreInputTypesRule(ValidationCtx ctx) =>
    VariablesAreInputTypesRule(ctx.schema);