Sha256: 094fb61615b029a35d5caad9ba9271f653ca4c42cbdfe06ca7f5ccf31de2aecc
Contents?: true
Size: 530 Bytes
Versions: 78
Compression:
Stored size: 530 Bytes
Contents
# frozen_string_literal: true module Decidim module Comments CommentMutationType = GraphQL::ObjectType.define do name "CommentMutation" description "A comment which includes its available mutations" field :id, !types.ID, "The Comment's unique ID" field :upVote, !Decidim::Comments::CommentType do resolve VoteCommentResolver.new(weight: 1) end field :downVote, !Decidim::Comments::CommentType do resolve VoteCommentResolver.new(weight: -1) end end end end
Version data entries
78 entries across 78 versions & 2 rubygems