debian-mirror-gitlab/app/graphql/resolvers/project_members_resolver.rb

20 lines
508 B
Ruby
Raw Normal View History

2020-06-23 00:09:42 +05:30
# frozen_string_literal: true
2021-01-29 00:20:46 +05:30
# rubocop:disable Graphql/ResolverType (inherited from MembersResolver)
2020-06-23 00:09:42 +05:30
module Resolvers
2020-11-24 15:15:51 +05:30
class ProjectMembersResolver < MembersResolver
authorize :read_project_member
2020-06-23 00:09:42 +05:30
2021-02-22 17:27:13 +05:30
argument :relations, [Types::ProjectMemberRelationEnum],
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: MembersFinder::DEFAULT_RELATIONS
2020-11-24 15:15:51 +05:30
private
2020-06-23 00:09:42 +05:30
2020-11-24 15:15:51 +05:30
def finder_class
2020-06-23 00:09:42 +05:30
MembersFinder
end
end
end