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

Version Path
decidim-comments-0.23.6 lib/decidim/comments/api/comment_mutation_type.rb
decidim-comments-0.23.5 lib/decidim/comments/api/comment_mutation_type.rb
decidim-comments-0.23.4 lib/decidim/comments/api/comment_mutation_type.rb
decidim-comments-0.23.3 lib/decidim/comments/api/comment_mutation_type.rb
decidim-comments-0.23.2 lib/decidim/comments/api/comment_mutation_type.rb
decidim-comments-0.23.1 lib/decidim/comments/api/comment_mutation_type.rb
decidim-comments-0.23.1.rc1 lib/decidim/comments/api/comment_mutation_type.rb
decidim-comments-0.23.0 lib/decidim/comments/api/comment_mutation_type.rb
decidim-comments-0.22.0 lib/decidim/comments/api/comment_mutation_type.rb
decidim-comments-0.21.0 lib/decidim/comments/api/comment_mutation_type.rb
decidim-comments-0.20.1 lib/decidim/comments/api/comment_mutation_type.rb
decidim-comments-0.20.0 lib/decidim/comments/api/comment_mutation_type.rb
decidim-comments-0.19.1 lib/decidim/comments/api/comment_mutation_type.rb
decidim-comments-0.18.1 lib/decidim/comments/api/comment_mutation_type.rb
decidim-comments-0.19.0 lib/decidim/comments/api/comment_mutation_type.rb
decidim-comments-0.17.2 lib/decidim/comments/api/comment_mutation_type.rb
decidim-comments-0.18.0 lib/decidim/comments/api/comment_mutation_type.rb
decidim-comments-0.17.1 lib/decidim/comments/api/comment_mutation_type.rb
decidim-comments-0.16.1 lib/decidim/comments/api/comment_mutation_type.rb
decidim-comments-0.17.0 lib/decidim/comments/api/comment_mutation_type.rb