Sha256: 3737d1cd79fc77f59fea5e021f289ec3e5cc86a21850c9c629a5dd5a74787156
Contents?: true
Size: 684 Bytes
Versions: 52
Compression:
Stored size: 684 Bytes
Contents
# frozen_string_literal: true module Decidim module Comments class CommentMutationType < Decidim::Api::Types::BaseObject graphql_name "CommentMutation" description "A comment which includes its available mutations" field :id, GraphQL::Types::ID, "The Comment's unique ID", null: false field :up_vote, Decidim::Comments::CommentType, null: true def up_vote(args: {}) VoteCommentResolver.new(weight: 1).call(object, args, context) end field :down_vote, Decidim::Comments::CommentType, null: true def down_vote(args: {}) VoteCommentResolver.new(weight: -1).call(object, args, context) end end end end
Version data entries
52 entries across 52 versions & 1 rubygems