From d201f6a48ad9034a7bbeb006aad68a792596a2de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alberto=20Miedes=20Garc=C3=A9s?= Date: Thu, 29 Sep 2016 11:42:13 +0200 Subject: [PATCH] Ability to retrieve proposal comments --- app/graph/types/proposal_type.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/graph/types/proposal_type.rb b/app/graph/types/proposal_type.rb index 67e06d70d..2bc1e37b0 100644 --- a/app/graph/types/proposal_type.rb +++ b/app/graph/types/proposal_type.rb @@ -17,4 +17,7 @@ ProposalType = GraphQL::ObjectType.define do field :retired_at, types.String, "Date when this proposal was retired" field :retired_reason, types.String, "Reason why this proposal was retired" field :retired_explanation, types.String, "Explanation why this proposal was retired" + + # Linked resources + field :comments, !types[!CommentType], "Comments in this proposal" end