Sha256: fb863bb2fdbf674bae3d533a4578040c125581e8b56ad7c4d94e348d42e27bea

Contents?: true

Size: 1.48 KB

Versions: 16

Compression:

Stored size: 1.48 KB

Contents

module GraphQL
  module StaticValidation
    # Default rules for {GraphQL::StaticValidation::Validator}
    #
    # Order is important here. Some validators return {GraphQL::Language::Visitor::SKIP}
    # which stops the visit on that node. That way it doesn't try to find fields on types that
    # don't exist, etc.
    ALL_RULES = [
      GraphQL::StaticValidation::DirectivesAreDefined,
      GraphQL::StaticValidation::DirectivesAreInValidLocations,
      GraphQL::StaticValidation::FragmentsAreFinite,
      GraphQL::StaticValidation::FragmentsAreNamed,
      GraphQL::StaticValidation::FragmentsAreUsed,
      GraphQL::StaticValidation::FragmentTypesExist,
      GraphQL::StaticValidation::FragmentsAreOnCompositeTypes,
      GraphQL::StaticValidation::FragmentSpreadsArePossible,
      GraphQL::StaticValidation::FieldsAreDefinedOnType,
      GraphQL::StaticValidation::FieldsWillMerge,
      GraphQL::StaticValidation::FieldsHaveAppropriateSelections,
      GraphQL::StaticValidation::ArgumentsAreDefined,
      GraphQL::StaticValidation::ArgumentLiteralsAreCompatible,
      GraphQL::StaticValidation::RequiredArgumentsArePresent,
      GraphQL::StaticValidation::VariablesAreInputTypes,
      GraphQL::StaticValidation::VariableDefaultValuesAreCorrectlyTyped,
      GraphQL::StaticValidation::VariablesAreUsedAndDefined,
      GraphQL::StaticValidation::VariableUsagesAreAllowed,
      GraphQL::StaticValidation::MutationRootExists,
      GraphQL::StaticValidation::SubscriptionRootExists,
    ]
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
graphql-1.2.4 lib/graphql/static_validation/all_rules.rb
graphql-1.2.3 lib/graphql/static_validation/all_rules.rb
graphql-1.2.2 lib/graphql/static_validation/all_rules.rb
graphql-1.2.1 lib/graphql/static_validation/all_rules.rb
graphql-1.2.0 lib/graphql/static_validation/all_rules.rb
graphql-1.1.0 lib/graphql/static_validation/all_rules.rb
graphql-1.0.0 lib/graphql/static_validation/all_rules.rb
graphql-0.19.4 lib/graphql/static_validation/all_rules.rb
graphql-0.19.3 lib/graphql/static_validation/all_rules.rb
graphql-0.19.2 lib/graphql/static_validation/all_rules.rb
graphql-0.19.1 lib/graphql/static_validation/all_rules.rb
graphql-0.19.0 lib/graphql/static_validation/all_rules.rb
graphql-0.18.15 lib/graphql/static_validation/all_rules.rb
graphql-0.18.14 lib/graphql/static_validation/all_rules.rb
graphql-0.18.13 lib/graphql/static_validation/all_rules.rb
graphql-0.18.12 lib/graphql/static_validation/all_rules.rb