diff --git a/lib/graph_ql/query_type_creator.rb b/lib/graph_ql/query_type_creator.rb index b7bde9f4e..9918b0638 100644 --- a/lib/graph_ql/query_type_creator.rb +++ b/lib/graph_ql/query_type_creator.rb @@ -17,7 +17,6 @@ module GraphQL description 'The root query for the schema' query_type_creator.created_api_types.each do |model, created_type| - # debugger if created_type.fields['id'] field model.name.underscore.to_sym do type created_type diff --git a/spec/lib/graph_ql/query_type_creator_spec.rb b/spec/lib/graph_ql/query_type_creator_spec.rb index 980c4f1a6..9669de0c1 100644 --- a/spec/lib/graph_ql/query_type_creator_spec.rb +++ b/spec/lib/graph_ql/query_type_creator_spec.rb @@ -3,8 +3,8 @@ require 'rails_helper' describe GraphQL::QueryTypeCreator do let(:api_type_definitions) do { - ProposalNotification => { fields: { title: 'string' } }, - Proposal => { fields: { id: 'integer', title: 'string' } } + ProposalNotification => { fields: { title: :string } }, + Proposal => { fields: { id: :integer, title: :string } } } end let(:api_types_creator) { GraphQL::ApiTypesCreator.new(api_type_definitions) }