Add ProposalNotification to api

This commit is contained in:
Alberto Miedes Garcés
2016-12-29 10:58:40 +01:00
parent 9896804070
commit 074a8182f6
3 changed files with 20 additions and 1 deletions

View File

@@ -1,9 +1,10 @@
API_TYPE_DEFINITIONS = {
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 ],
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 proposal_notifications public_author ],
Comment => %I[ id commentable_id commentable_type body created_at cached_votes_total cached_votes_up cached_votes_down ancestry confidence_score public_author ],
Geozone => %I[ id name ]
ProposalNotification => %I[ title body proposal_id created_at proposal ],
}
type_creator = GraphQL::TypeCreator.new