2020-11-24 15:15:51 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module Resolvers
|
|
|
|
class GroupMembersResolver < MembersResolver
|
2021-01-29 00:20:46 +05:30
|
|
|
type Types::GroupMemberType.connection_type, null: true
|
|
|
|
|
2020-11-24 15:15:51 +05:30
|
|
|
authorize :read_group_member
|
|
|
|
|
2021-02-22 17:27:13 +05:30
|
|
|
argument :relations, [Types::GroupMemberRelationEnum],
|
2021-03-08 18:12:59 +05:30
|
|
|
description: 'Filter members by the given member relations.',
|
2021-02-22 17:27:13 +05:30
|
|
|
required: false,
|
|
|
|
default_value: GroupMembersFinder::DEFAULT_RELATIONS
|
|
|
|
|
2022-07-16 23:28:13 +05:30
|
|
|
argument :access_levels, [Types::AccessLevelEnum],
|
|
|
|
description: 'Filter members by the given access levels.',
|
|
|
|
required: false
|
|
|
|
|
2020-11-24 15:15:51 +05:30
|
|
|
private
|
|
|
|
|
|
|
|
def finder_class
|
|
|
|
GroupMembersFinder
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|