class GraphQL::Introspection::DynamicFields
Public Instance Methods
__typename(irep_node: nil)
click to toggle source
`irep_node:` will be nil for the interpreter, since there is no such thing
# File lib/graphql/introspection/dynamic_fields.rb, line 8 def __typename(irep_node: nil) if context.interpreter? object.class.graphql_name else irep_node.owner_type.name end end