Class: Types::MergeRequestConnectionType

Inherits:
CountableConnectionType show all
Defined in:
app/graphql/types/merge_request_connection_type.rb

Overview

rubocop: disable Graphql/AuthorizeTypes

Instance Method Summary collapse

Methods inherited from CountableConnectionType

#count

Instance Method Details

#total_time_to_mergeObject

rubocop: disable CodeReuse/ActiveRecord


10
11
12
# File 'app/graphql/types/merge_request_connection_type.rb', line 10

def total_time_to_merge
  object.items.reorder(nil).total_time_to_merge
end