2022-11-25 23:54:43 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module Resolvers
|
2023-06-20 00:43:36 +05:30
|
|
|
class UpVotesCountResolver < Resolvers::AwardEmoji::BaseVotesCountResolver
|
2022-11-25 23:54:43 +05:30
|
|
|
type GraphQL::Types::Int, null: true
|
|
|
|
|
|
|
|
def resolve
|
|
|
|
authorize!(object)
|
2023-06-20 00:43:36 +05:30
|
|
|
votes_batch_loader.load_upvotes(object)
|
2022-11-25 23:54:43 +05:30
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|