class Decidim::Comments::CommentMutationType
Public Instance Methods
down_vote(args: {})
click to toggle source
# File lib/decidim/api/comment_mutation_type.rb, line 17 def down_vote(args: {}) VoteCommentResolver.new(weight: -1).call(object, args, context) end
up_vote(args: {})
click to toggle source
# File lib/decidim/api/comment_mutation_type.rb, line 12 def up_vote(args: {}) VoteCommentResolver.new(weight: 1).call(object, args, context) end