diff options
Diffstat (limited to 'app/graphql/resolvers/users/participants_resolver.rb')
-rw-r--r-- | app/graphql/resolvers/users/participants_resolver.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/app/graphql/resolvers/users/participants_resolver.rb b/app/graphql/resolvers/users/participants_resolver.rb new file mode 100644 index 00000000000..9e87b60fa34 --- /dev/null +++ b/app/graphql/resolvers/users/participants_resolver.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +module Resolvers + module Users + class ParticipantsResolver < BaseResolver + type Types::UserType.connection_type, null: true + + def resolve(**args) + object.visible_participants(current_user) + end + end + end +end |