lib/generators/graphql/install_generator.rb in graphql-2.1.7 vs lib/generators/graphql/install_generator.rb in graphql-2.1.8

- old
+ new

@@ -103,9 +103,12 @@ ["base_object", "base_argument", "base_field", "base_enum", "base_input_object", "base_interface", "base_scalar", "base_union"].each do |base_type| template("#{base_type}.erb", "#{options[:directory]}/types/#{base_type}.rb") end + # All resolvers are defined as living in their own module, including this class. + template("base_resolver.erb", "#{options[:directory]}/resolvers/base.rb") + # Note: You can't have a schema without the query type, otherwise introspection breaks template("query_type.erb", "#{options[:directory]}/types/query_type.rb") insert_root_type('query', 'QueryType') invoke "graphql:install:mutation_root" unless options.skip_mutation_root_type?