Sha256: 8343bdae7ffa06a702d9a4ced66e5eae15ece0ea75767c2d65ba5d94d966507c

Contents?: true

Size: 1.32 KB

Versions: 4

Compression:

Stored size: 1.32 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 :name, types.String
  field :description, types.String
  field :kind do
    type !GraphQL::Introspection::TypeKindEnum
    resolve -> (target, a, c) { target.kind.name }
  end
  field :fields,          field: GraphQL::Introspection::FieldsField
  field :ofType,          field: GraphQL::Introspection::OfTypeField
  field :inputFields,     field: GraphQL::Introspection::InputFieldsField
  field :possibleTypes,   field: GraphQL::Introspection::PossibleTypesField
  field :enumValues,      field: GraphQL::Introspection::EnumValuesField
  field :interfaces,      field: GraphQL::Introspection::InterfacesField
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
graphql-0.19.3 lib/graphql/introspection/type_type.rb
graphql-0.19.2 lib/graphql/introspection/type_type.rb
graphql-0.19.1 lib/graphql/introspection/type_type.rb
graphql-0.19.0 lib/graphql/introspection/type_type.rb