Sha256: cd1fe92bb7feb24f813aa13853ff52533d5866b68fe28fda334c31e9638467bd
Contents?: true
Size: 527 Bytes
Versions: 15
Compression:
Stored size: 527 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
15 entries across 15 versions & 2 rubygems