specifiedRules top-level constant

List<ValidationRule> const specifiedRules

Default validation rules from the GraphQL specification

Implementation

const specifiedRules = <ValidationRule>[
  // TODO: 3I some are returning error when visiting, not by using reportError
  executableDefinitionsRule,
  uniqueOperationNamesRule,
  loneAnonymousOperationRule,
  singleFieldSubscriptionsRule,
  knownTypeNamesRule,
  fragmentsOnCompositeTypesRule,
  variablesAreInputTypesRule,
  scalarLeafsRule,
  fieldsOnCorrectTypeRule,
  uniqueFragmentNamesRule,
  knownFragmentNamesRule,
  noUnusedFragmentsRule,
  possibleFragmentSpreadsRule,
  noFragmentCyclesRule,
  uniqueVariableNamesRule,
  noUndefinedVariablesRule,
  noUnusedVariablesRule,
  knownDirectivesRule,
  uniqueDirectivesPerLocationRule,
  knownArgumentNamesRule,
  uniqueArgumentNamesRule,
  valuesOfCorrectTypeRule,
  providedRequiredArgumentsRule,
  variablesInAllowedPositionRule,
  overlappingFieldsCanBeMergedRule,
  uniqueInputFieldNamesRule,
];