lib/souls/generate/query.rb in souls-0.25.12 vs lib/souls/generate/query.rb in souls-0.25.13

- old
+ new

@@ -52,9 +52,11 @@ raise(StandardError, e) end end def self.query(class_name: "souls") + file_dir = "./app/graphql/queries/" + FileUtils.mkdir_p(file_dir) unless Dir.exist?(file_dir) singularized_class_name = class_name.singularize create_query(class_name: singularized_class_name) create_queries(class_name: singularized_class_name) rescue StandardError => e raise(StandardError, e)