Sha256: e7c601439975d0a229904c003e6ab3684a0a3084fd8a7ea33e4c3b802c426cb7
Contents?: true
Size: 490 Bytes
Versions: 106
Compression:
Stored size: 490 Bytes
Contents
# frozen_string_literal: true module GraphQL module Introspection class DynamicFields < Introspection::BaseObject field :__typename, String, "The name of this type", null: false, extras: [:irep_node] # `irep_node:` will be nil for the interpreter, since there is no such thing def __typename(irep_node: nil) if context.interpreter? object.class.graphql_name else irep_node.owner_type.name end end end end end
Version data entries
106 entries across 106 versions & 2 rubygems