add mutations to questions and reviews
This commit is contained in:
11
lib/tasks/graphql.rake
Normal file
11
lib/tasks/graphql.rake
Normal file
@@ -0,0 +1,11 @@
|
||||
namespace :graphql do
|
||||
desc "Dump graphql schema to app/graphql/__generated__/schema.graphql"
|
||||
task dump: :environment do
|
||||
File.write(
|
||||
Rails.root.join(ProgressTestSchema::DEFINITION_DUMP_PATH),
|
||||
ProgressTestSchema.to_definition
|
||||
)
|
||||
|
||||
puts("#{ProgressTestSchema::DEFINITION_DUMP_PATH} updated")
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user