Sha256: a82848b9f21c24c79e25ff694b2466ad0a753ee140e6209eedba5a02c84c80c2

Contents?: true

Size: 846 Bytes

Versions: 11

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

11 entries across 11 versions & 1 rubygems

Version Path
graphql-0.9.4 lib/graphql/introspection/type_type.rb
graphql-0.9.3 lib/graphql/introspection/type_type.rb
graphql-0.9.2 lib/graphql/introspection/type_type.rb
graphql-0.8.1 lib/graphql/introspection/type_type.rb
graphql-0.8.0 lib/graphql/introspection/type_type.rb
graphql-0.7.1 lib/graphql/introspection/type_type.rb
graphql-0.7.0 lib/graphql/introspection/type_type.rb
graphql-0.6.2 lib/graphql/introspection/type_type.rb
graphql-0.6.1 lib/graphql/introspection/type_type.rb
graphql-0.6.0 lib/graphql/introspection/type_type.rb
graphql-0.5.0 lib/graph_ql/introspection/type_type.rb