debian-mirror-gitlab/app/graphql/resolvers/user_starred_projects_resolver.rb
2021-10-27 15:23:28 +05:30

17 lines
438 B
Ruby

# frozen_string_literal: true
module Resolvers
class UserStarredProjectsResolver < BaseResolver
type Types::ProjectType.connection_type, null: true
argument :search, GraphQL::Types::String,
required: false,
description: 'Search query.'
alias_method :user, :object
def resolve(**args)
StarredProjectsFinder.new(user, params: args, current_user: current_user).execute
end
end
end