Sha256: 335775825de3f407a05c846709608ad20c7afdd46724e62fd694c069a2a17da2

Contents?: true

Size: 274 Bytes

Versions: 33

Compression:

Stored size: 274 Bytes

Contents

# frozen_string_literal: true
module GraphQL
  module Introspection
    class DynamicFields < Introspection::BaseObject
      field :__typename, String, "The name of this type", null: false

      def __typename
        object.class.graphql_name
      end
    end
  end
end

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
graphql-2.0.31 lib/graphql/introspection/dynamic_fields.rb
graphql-2.0.29 lib/graphql/introspection/dynamic_fields.rb
graphql-2.0.28 lib/graphql/introspection/dynamic_fields.rb
graphql-2.1.0 lib/graphql/introspection/dynamic_fields.rb
graphql-2.0.27 lib/graphql/introspection/dynamic_fields.rb
graphql-2.0.26 lib/graphql/introspection/dynamic_fields.rb
graphql-2.0.25 lib/graphql/introspection/dynamic_fields.rb
graphql-2.0.24 lib/graphql/introspection/dynamic_fields.rb
graphql-2.0.23 lib/graphql/introspection/dynamic_fields.rb
graphql-2.0.22 lib/graphql/introspection/dynamic_fields.rb
graphql-2.0.21 lib/graphql/introspection/dynamic_fields.rb
graphql-2.0.20 lib/graphql/introspection/dynamic_fields.rb
graphql-2.0.17.2 lib/graphql/introspection/dynamic_fields.rb
graphql-2.0.17.1 lib/graphql/introspection/dynamic_fields.rb
graphql-2.0.19 lib/graphql/introspection/dynamic_fields.rb
graphql-2.0.18 lib/graphql/introspection/dynamic_fields.rb
graphql-2.0.17 lib/graphql/introspection/dynamic_fields.rb
graphql-2.0.16 lib/graphql/introspection/dynamic_fields.rb
graphql-2.0.15 lib/graphql/introspection/dynamic_fields.rb
graphql-2.0.14 lib/graphql/introspection/dynamic_fields.rb