From 700fcaab168255853277936fa2d96f0c70610bd0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alberto=20Miedes=20Garc=C3=A9s?= Date: Fri, 18 Nov 2016 16:24:41 +0100 Subject: [PATCH] Expose proposal/debate comments in the API so I can test :has_many associations --- config/initializers/graphql.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/initializers/graphql.rb b/config/initializers/graphql.rb index 06b39aaab..1f0c8968d 100644 --- a/config/initializers/graphql.rb +++ b/config/initializers/graphql.rb @@ -1,7 +1,7 @@ API_TYPE_DEFINITIONS = { User => %I[ id username proposals ], - Debate => %I[ id title description author_id author created_at ], - Proposal => %I[ id title description author_id author created_at ], + Debate => %I[ id title description author_id author created_at comments ], + Proposal => %I[ id title description author_id author created_at comments ], Comment => %I[ id body user_id user commentable_id ] }