2020-06-04 11:08:21 -04:00
|
|
|
# frozen_string_literal: true
|
2020-11-17 07:09:15 -05:00
|
|
|
# rubocop:disable Graphql/ResolverType (inherited from MembersResolver)
|
2020-06-04 11:08:21 -04:00
|
|
|
|
|
|
|
module Resolvers
|
2020-09-14 11:09:28 -04:00
|
|
|
class ProjectMembersResolver < MembersResolver
|
2020-08-21 08:10:22 -04:00
|
|
|
authorize :read_project_member
|
2020-06-04 11:08:21 -04:00
|
|
|
|
2020-12-02 01:09:50 -05:00
|
|
|
argument :relations, [Types::ProjectMemberRelationEnum],
|
2021-01-11 19:10:42 -05:00
|
|
|
description: 'Filter members by the given member relations.',
|
2020-12-02 01:09:50 -05:00
|
|
|
required: false,
|
|
|
|
default_value: MembersFinder::DEFAULT_RELATIONS
|
|
|
|
|
2020-09-14 11:09:28 -04:00
|
|
|
private
|
2020-06-04 11:08:21 -04:00
|
|
|
|
2020-09-14 11:09:28 -04:00
|
|
|
def finder_class
|
2020-06-04 11:08:21 -04:00
|
|
|
MembersFinder
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|