From de913c5536125d956cf28598ed57d4a4d38cabbf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alberto=20Miedes=20Garc=C3=A9s?= Date: Thu, 29 Sep 2016 13:10:05 +0200 Subject: [PATCH] Fixed grapqhl comment_type fields --- app/graph/types/comment_type.rb | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/app/graph/types/comment_type.rb b/app/graph/types/comment_type.rb index 2c74bee40..8701ee04f 100644 --- a/app/graph/types/comment_type.rb +++ b/app/graph/types/comment_type.rb @@ -3,15 +3,15 @@ CommentType = GraphQL::ObjectType.define do description "A reply to a proposal, spending proposal, debate or comment" field :id, !types.ID, "The unique ID of this comment" - field :commentable_id, !types.Int, "ID of the resource where this comment was placed on" - field :commentable_type, !types.String, "Type of resource where this comment was placed on" - field :body, !types.String, "The body of this comment" - field :subject, !types.String, "The subject of this comment" + field :commentable_id, types.Int, "ID of the resource where this comment was placed on" + field :commentable_type, types.String, "Type of resource where this comment was placed on" + field :body, types.String, "The body of this comment" + field :subject, types.String, "The subject of this comment" field :user_id, !types.Int, "The ID of the user who made this comment" - field :created_at, !types.String, "The date this comment was posted" - field :updated_at, !types.String, "The date this comment was edited" - field :flags_count, !types.Int, "The number of flags of this comment" - field :cached_votes_total, !types.Int, "The total number of votes of this comment" - field :cached_votes_up, !types.Int, "The total number of upvotes of this comment" - field :cached_votes_down, !types.Int, "The total number of downvotes of this comment" + field :created_at, types.String, "The date this comment was posted" + field :updated_at, types.String, "The date this comment was edited" + field :flags_count, types.Int, "The number of flags of this comment" + field :cached_votes_total, types.Int, "The total number of votes of this comment" + field :cached_votes_up, types.Int, "The total number of upvotes of this comment" + field :cached_votes_down, types.Int, "The total number of downvotes of this comment" end