debian-mirror-gitlab/app/graphql/resolvers/project_members_resolver.rb
2021-02-22 17:27:13 +05:30

19 lines
507 B
Ruby

# frozen_string_literal: true
# rubocop:disable Graphql/ResolverType (inherited from MembersResolver)
module Resolvers
class ProjectMembersResolver < MembersResolver
authorize :read_project_member
argument :relations, [Types::ProjectMemberRelationEnum],
description: 'Filter members by the given member relations',
required: false,
default_value: MembersFinder::DEFAULT_RELATIONS
private
def finder_class
MembersFinder
end
end
end