Module: GraphQL::TypeKinds

Defined in:
lib/graphql/type_kinds.rb

Overview

Type kinds are the basic categories which a type may belong to (‘Object`, `Scalar`, `Union`…)

Defined Under Namespace

Classes: TypeKind

Constant Summary collapse

TYPE_KINDS =
[
  SCALAR =        TypeKind.new("SCALAR", input: true),
  OBJECT =        TypeKind.new("OBJECT", fields: true),
  INTERFACE =     TypeKind.new("INTERFACE", resolves: true, fields: true),
  UNION =         TypeKind.new("UNION", resolves: true),
  ENUM =          TypeKind.new("ENUM", input: true),
  INPUT_OBJECT =  TypeKind.new("INPUT_OBJECT", input: true),
  LIST =          TypeKind.new("LIST", wraps: true),
  NON_NULL =      TypeKind.new("NON_NULL", wraps: true),
]
KIND_NAMES =
TYPE_KINDS.map(&:name)