2021-02-22 17:27:13 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module Types
|
|
|
|
class GroupMemberRelationEnum < BaseEnum
|
|
|
|
graphql_name 'GroupMemberRelation'
|
|
|
|
description 'Group member relation'
|
|
|
|
|
|
|
|
::GroupMembersFinder::RELATIONS.each do |member_relation|
|
2021-06-08 01:23:25 +05:30
|
|
|
value member_relation.to_s.upcase, value: member_relation, description: "#{::GroupMembersFinder::RELATIONS_DESCRIPTIONS[member_relation]}."
|
2021-02-22 17:27:13 +05:30
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|