Sha256: f8c39fbf4b79f0b4a6ceddc1b8a7ad95bff45b68bb76dedec2135be79ebaf9cc

Contents?: true

Size: 1.26 KB

Versions: 8

Compression:

Stored size: 1.26 KB

Contents

GraphQL::Introspection::TypeType = GraphQL::ObjectType.define do
  name "__Type"
  description "The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in "\
              "GraphQL as represented by the `__TypeKind` enum.\n\n"\
              "Depending on the kind of a type, certain fields describe information about that type. "\
              "Scalar types provide no information beyond a name and description, while "\
              "Enum types provide their values. Object and Interface types provide the fields "\
              "they describe. Abstract types, Union and Interface, provide the Object types "\
              "possible at runtime. List and NonNull types compose other types."

  field :kind do
    type !GraphQL::Introspection::TypeKindEnum
    resolve ->(target, a, c) { target.kind.name }
  end

  field :name, types.String
  field :description, types.String
  field :fields,        GraphQL::Introspection::FieldsField
  field :interfaces,    GraphQL::Introspection::InterfacesField
  field :possibleTypes, GraphQL::Introspection::PossibleTypesField
  field :enumValues,    GraphQL::Introspection::EnumValuesField
  field :inputFields,   GraphQL::Introspection::InputFieldsField
  field :ofType,        GraphQL::Introspection::OfTypeField
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
graphql-1.2.6 lib/graphql/introspection/type_type.rb
graphql-1.2.5 lib/graphql/introspection/type_type.rb
graphql-1.2.4 lib/graphql/introspection/type_type.rb
graphql-1.2.3 lib/graphql/introspection/type_type.rb
graphql-1.2.2 lib/graphql/introspection/type_type.rb
graphql-1.2.1 lib/graphql/introspection/type_type.rb
graphql-1.2.0 lib/graphql/introspection/type_type.rb
graphql-1.1.0 lib/graphql/introspection/type_type.rb