2021-02-15 07:09:29 -05:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module Resolvers
|
|
|
|
class GroupLabelsResolver < LabelsResolver
|
|
|
|
type Types::LabelType.connection_type, null: true
|
|
|
|
|
2021-07-22 08:10:04 -04:00
|
|
|
argument :include_descendant_groups, GraphQL::Types::Boolean,
|
2021-02-15 07:09:29 -05:00
|
|
|
required: false,
|
|
|
|
description: 'Include labels from descendant groups.',
|
|
|
|
default_value: false
|
|
|
|
|
2021-07-22 08:10:04 -04:00
|
|
|
argument :only_group_labels, GraphQL::Types::Boolean,
|
2021-02-15 07:09:29 -05:00
|
|
|
required: false,
|
|
|
|
description: 'Include only group level labels.',
|
|
|
|
default_value: false
|
|
|
|
end
|
|
|
|
end
|