From 0e501e2edd6f984ac522876a7158d263edf80f08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alberto=20Miedes=20Garc=C3=A9s?= Date: Tue, 27 Dec 2016 18:18:00 +0100 Subject: [PATCH] Update API fields for Debate, User and Geozone --- config/initializers/graphql.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/config/initializers/graphql.rb b/config/initializers/graphql.rb index 02c8c750f..bf5d8d8f9 100644 --- a/config/initializers/graphql.rb +++ b/config/initializers/graphql.rb @@ -1,7 +1,9 @@ API_TYPE_DEFINITIONS = { - Debate => %I[ id title description author_id author created_at comments ], + User => %I[ id username proposals ], + Debate => %I[ id title description created_at cached_votes_total cached_votes_up cached_votes_down comments_count hot_score confidence_score geozone_id geozone comments public_author ], Proposal => %I[ id title description external_url cached_votes_up comments_count hot_score confidence_score created_at summary video_url geozone_id retired_at retired_reason retired_explanation geozone comments public_author ], Comment => %I[ id body user_id user commentable_id ], + Geozone => %I[ id name ] } type_creator = GraphQL::TypeCreator.new