app/services/resolvers/page_number_extension.rb
def apply_page_based_pagination!(connection, settings)
      settings.each do |key, value|
        case key
        when :before
          connection.before_value = value
        when :after
          connection.after_value = value
        when :first
          connection.first_value = value
        when :last
          connection.last_value = value
        end
      end
    end
# We need to override certain keys in the connection with the values calculated
# in {#resolve}.
#
# @api private
# @param [GraphQL::Pagination::ActiveRecordRelationConnection] connection
# @param [{ Symbol => Object }] settings
# @return [void]
We need to override certain keys in the connection with the values calculated
in {#resolve}.
We need to override certain keys in the connection with the values calculated in { #resolve } .
def apply_page_based_pagination!(connection, settings)
      settings.each do |key, value|
        case key
        when :before
          connection.before_value = value
        when :after
          connection.after_value = value
        when :first
          connection.first_value = value
        when :last
          connection.last_value = value
        end
      end
    end
def apply_page_based_pagination! ( connection , settings ) settings . each do | key , value | case key when :before connection . before_value = value when :after connection . after_value = value when :first connection . first_value = value when :last connection . last_value = value end end end
We need to override certain keys in the connection with the values calculated
in {#resolve}.
We need to override certain keys in the connection with the values calculated in { #resolve } .
None
void
connection
settings
None
api
None