C# (CSharp) GraphQL.Validation.Rules Namespace

Classes

Name Description
DefaultValuesOfCorrectType Variable default values of correct type A GraphQL document is only valid if all variable default values are of the type expected by their definition.
FieldsOnCorrectType Fields on correct type A GraphQL document is only valid if all fields selected are defined by the parent type, or are an allowed meta field such as __typename
FragmentsOnCompositeTypes Fragments on composite type Fragments use a type condition to determine if they apply, since fragments can only be spread into a composite type (object, interface, or union), the type condition must also be a composite type.
KnownArgumentNames Known argument names A GraphQL field is only valid if all supplied arguments are defined by that field.
KnownDirectives Known directives A GraphQL document is only valid if all `@directives` are known by the schema and legally positioned.
KnownFragmentNames Known fragment names A GraphQL document is only valid if all ...Fragment fragment spreads refer to fragments defined in the same document.
KnownTypeNames Known type names A GraphQL document is only valid if referenced types (specifically variable definitions and fragment conditions) are defined by the type schema.
LoneAnonymousOperation Lone anonymous operation A GraphQL document is only valid if when it contains an anonymous operation (the query short-hand) that it contains only that one operation definition.
NoFragmentCycles No fragment cycles
NoUndefinedVariables No undefined variables A GraphQL operation is only valid if all variables encountered, both directly and via fragment spreads, are defined by that operation.
NoUnusedFragments No unused fragments A GraphQL document is only valid if all fragment definitions are spread within operations, or spread within other fragments spread within operations.
NoUnusedVariables No unused variables A GraphQL operation is only valid if all variables defined by that operation are used in that operation or a fragment transitively included by that operation.
PossibleFragmentSpreads Possible fragment spread A fragment spread is only valid if the type condition could ever possibly be true: if there is a non-empty intersection of the possible parent types, and possible types which pass the type condition.
ScalarLeafs Scalar leafs A GraphQL document is valid only if all leaf fields (fields without sub selections) are of scalar or enum types.
UniqueArgumentNames
UniqueFragmentNames Unique fragment names A GraphQL document is only valid if all defined fragments have unique names.
UniqueInputFieldNames Unique input field names A GraphQL input object value is only valid if all supplied fields are uniquely named.
UniqueOperationNames Unique operation names A GraphQL document is only valid if all defined operations have unique names.
VariablesAreInputTypes 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).
VariablesInAllowedPosition Variables passed to field arguments conform to type