2021-01-03 14:25:43 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module GroupIssuableResolver
|
|
|
|
extend ActiveSupport::Concern
|
|
|
|
|
|
|
|
class_methods do
|
|
|
|
def include_subgroups(name_of_things)
|
2021-10-27 15:23:28 +05:30
|
|
|
argument :include_subgroups, GraphQL::Types::Boolean,
|
2021-01-03 14:25:43 +05:30
|
|
|
required: false,
|
|
|
|
default_value: false,
|
|
|
|
description: "Include #{name_of_things} belonging to subgroups"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|