Sha256: 0bb325f787410a8e880b17c8a2ed66d6b6da9ff1cb52637a54ce453cade8db94

Contents?: true

Size: 296 Bytes

Versions: 32

Compression:

Stored size: 296 Bytes

Contents

# frozen_string_literal: true
module GraphQL
  module Introspection
    TypenameField = GraphQL::Field.define do
      name "__typename"
      description "The name of this type"
      type -> { !GraphQL::STRING_TYPE }
      resolve ->(obj, a, ctx) { ctx.irep_node.owner_type }
    end
  end
end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
graphql-1.8.0.pre2 lib/graphql/introspection/typename_field.rb
graphql-1.7.7 lib/graphql/introspection/typename_field.rb
graphql-1.8.0.pre1 lib/graphql/introspection/typename_field.rb
graphql-1.7.6 lib/graphql/introspection/typename_field.rb
graphql-1.7.5 lib/graphql/introspection/typename_field.rb
graphql-1.7.4 lib/graphql/introspection/typename_field.rb
graphql-1.7.3 lib/graphql/introspection/typename_field.rb
graphql-1.7.2 lib/graphql/introspection/typename_field.rb
graphql-1.7.1 lib/graphql/introspection/typename_field.rb
graphql-1.7.0 lib/graphql/introspection/typename_field.rb
graphql-1.6.8 lib/graphql/introspection/typename_field.rb
graphql-1.6.7 lib/graphql/introspection/typename_field.rb
graphql-1.6.6 lib/graphql/introspection/typename_field.rb
graphql-1.6.5 lib/graphql/introspection/typename_field.rb
graphql-1.6.4 lib/graphql/introspection/typename_field.rb
graphql-1.5.15 lib/graphql/introspection/typename_field.rb
graphql-1.6.3 lib/graphql/introspection/typename_field.rb
graphql-1.6.2 lib/graphql/introspection/typename_field.rb
graphql-1.6.1 lib/graphql/introspection/typename_field.rb
graphql-1.6.0 lib/graphql/introspection/typename_field.rb