lib/rails/graphql/request/component/fragment.rb
def resolve_with!(object)
          return if invalid?

          @current_object = object
          resolve!
        ensure
          @current_object = nil
        end
# Only resolve if the +type_klass+ is equivalent to the given +object+
Only resolve if the +type_klass+ is equivalent to the given +object+
Only resolve if the + type_klass + is equivalent to the given + object +
def resolve_with!(object)
          return if invalid?
          @current_object = object
          resolve!
        ensure
          @current_object = nil
        end
def resolve_with! ( object ) return if invalid? @current_object = object resolve! ensure @current_object = nil end
Only resolve if the +type_klass+ is equivalent to the given +object+
Only resolve if the + type_klass + is equivalent to the given + object +
object