17 lines
422 B
Ruby
17 lines
422 B
Ruby
# frozen_string_literal: true
|
|
|
|
module Resolvers
|
|
class UserStarredProjectsResolver < BaseResolver
|
|
type Types::ProjectType, null: true
|
|
|
|
argument :search, GraphQL::STRING_TYPE,
|
|
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
|