Refactor specs for TypeCreator and ConsulSchema

This commit is contained in:
Alberto Miedes Garcés
2016-11-30 13:44:31 +01:00
parent a516262724
commit aef20aadf7
3 changed files with 174 additions and 138 deletions

View File

@@ -1,8 +1,9 @@
API_TYPE_DEFINITIONS = {
User => %I[ id username proposals ],
User => %I[ id username proposals organization ],
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 ]
Comment => %I[ id body user_id user commentable_id ],
Organization => %I[ id name ]
}
type_creator = GraphQL::TypeCreator.new