lib/rails/graphql/request/component/field.rb
# When the +type_klass+ of an object is an interface or a union, the
# field needs to be redirected to the one from the actual resolved
# +object+ type
When the +type_klass+ of an object is an interface or a union, the
field needs to be redirected to the one from the actual resolved
+object+ type
When the + type_klass + of an object is an interface or a union the field needs to be redirected to the one from the actual resolved + object + type
def resolve_with!(object)
          return resolve! if invalid?
          old_field, @field = @field, object[@field.name]
          @current_object = object
          resolve!
        ensure
          @field, @current_object = old_field, nil
        end
def resolve_with! ( object ) return resolve! if invalid? old_field , @field = @field , object [ @field . name ] @current_object = object resolve! ensure @field , @current_object = old_field , nil end
When the +type_klass+ of an object is an interface or a union, the
field needs to be redirected to the one from the actual resolved
+object+ type
When the + type_klass + of an object is an interface or a union the field needs to be redirected to the one from the actual resolved + object + type
object