Files
progress-test/lib/tasks/graphql.rake
2022-07-21 15:10:49 -03:00

12 lines
325 B
Ruby

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