debian-mirror-gitlab/app/graphql/resolvers/release_milestones_resolver.rb
2021-03-08 18:12:59 +05:30

13 lines
303 B
Ruby

# frozen_string_literal: true
module Resolvers
class ReleaseMilestonesResolver < BaseResolver
type Types::MilestoneType.connection_type, null: true
alias_method :release, :object
def resolve(**args)
offset_pagination(release.milestones.order_by_dates_and_title)
end
end
end