Sha256: 766cc6a8534e0b3705567024ee982c8d19ea13e5679f7fea01bbe9ed23ed1590

Contents?: true

Size: 846 Bytes

Versions: 44

Compression:

Stored size: 846 Bytes

Contents

GraphQL::Introspection::TypeType = GraphQL::ObjectType.define do
  name "__Type"
  description "A type in the GraphQL schema"

  field :name, types.String,  "The name of this type"
  field :description, types.String, "What this type represents"

  field :kind do
    type !GraphQL::Introspection::TypeKindEnum
    description "The kind of this type"
    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

44 entries across 44 versions & 1 rubygems

Version Path
graphql-0.18.15 lib/graphql/introspection/type_type.rb
graphql-0.18.14 lib/graphql/introspection/type_type.rb
graphql-0.18.13 lib/graphql/introspection/type_type.rb
graphql-0.18.12 lib/graphql/introspection/type_type.rb
graphql-0.18.11 lib/graphql/introspection/type_type.rb
graphql-0.18.10 lib/graphql/introspection/type_type.rb
graphql-0.18.9 lib/graphql/introspection/type_type.rb
graphql-0.18.8 lib/graphql/introspection/type_type.rb
graphql-0.18.7 lib/graphql/introspection/type_type.rb
graphql-0.18.6 lib/graphql/introspection/type_type.rb
graphql-0.18.5 lib/graphql/introspection/type_type.rb
graphql-0.18.4 lib/graphql/introspection/type_type.rb
graphql-0.18.3 lib/graphql/introspection/type_type.rb
graphql-0.18.2 lib/graphql/introspection/type_type.rb
graphql-0.18.1 lib/graphql/introspection/type_type.rb
graphql-0.18.0 lib/graphql/introspection/type_type.rb
graphql-0.17.2 lib/graphql/introspection/type_type.rb
graphql-0.17.1 lib/graphql/introspection/type_type.rb
graphql-0.17.0 lib/graphql/introspection/type_type.rb
graphql-0.16.1 lib/graphql/introspection/type_type.rb