Sha256: 5cf2d9ce7a1d72bfd11ba811163e9d77de21a9e3ae236599601fa96e617baa5f

Contents?: true

Size: 303 Bytes

Versions: 57

Compression:

Stored size: 303 Bytes

Contents

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

      def __typename
        object.class.graphql_name
      end
    end
  end
end

Version data entries

57 entries across 57 versions & 1 rubygems

Version Path
graphql-2.4.8 lib/graphql/introspection/dynamic_fields.rb
graphql-2.4.7 lib/graphql/introspection/dynamic_fields.rb
graphql-2.4.6 lib/graphql/introspection/dynamic_fields.rb
graphql-2.4.5 lib/graphql/introspection/dynamic_fields.rb
graphql-2.4.4 lib/graphql/introspection/dynamic_fields.rb
graphql-2.4.3 lib/graphql/introspection/dynamic_fields.rb
graphql-2.4.2 lib/graphql/introspection/dynamic_fields.rb
graphql-2.4.1 lib/graphql/introspection/dynamic_fields.rb
graphql-2.4.0 lib/graphql/introspection/dynamic_fields.rb
graphql-2.3.20 lib/graphql/introspection/dynamic_fields.rb
graphql-2.3.19 lib/graphql/introspection/dynamic_fields.rb
graphql-2.3.18 lib/graphql/introspection/dynamic_fields.rb
graphql-2.3.17 lib/graphql/introspection/dynamic_fields.rb
graphql-2.3.16 lib/graphql/introspection/dynamic_fields.rb
graphql-2.3.15 lib/graphql/introspection/dynamic_fields.rb
graphql-2.3.14 lib/graphql/introspection/dynamic_fields.rb
graphql-2.3.13 lib/graphql/introspection/dynamic_fields.rb
graphql-2.3.12 lib/graphql/introspection/dynamic_fields.rb
graphql-2.3.11 lib/graphql/introspection/dynamic_fields.rb
graphql-2.3.10 lib/graphql/introspection/dynamic_fields.rb