add mutations to questions and reviews

This commit is contained in:
João Geonizeli
2022-07-21 15:10:49 -03:00
parent d38acaab98
commit 3ce6c421b1
18 changed files with 909 additions and 6 deletions

11
lib/tasks/graphql.rake Normal file
View 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