lib/graphiti_gql/schema/query.rb in graphiti_gql-0.2.1 vs lib/graphiti_gql/schema/query.rb in graphiti_gql-0.2.2

- old
+ new

@@ -1,12 +1,11 @@ module GraphitiGql class Schema class Query def initialize(resources, existing_query: nil) @resources = resources - @query_class = Class.new(existing_query || ::GraphQL::Schema::Object) + @query_class = Class.new(existing_query || Schema.base_object) @query_class.graphql_name "Query" - @query_class.field_class ::GraphQL::Schema::Field end def build @resources.each { |resource| ResourceType.new(resource).build } define_entrypoints \ No newline at end of file