What is the best approach to recreate a BigQuery table when the schema has changed?
Currently I am retrieving data in json format from a GraphQL API and inserting it into a BigQuery table. Every time this code executes, then it deletes the table to guarantee the insertion of data in the table – if the schema of the API changes then a new table will be created with the new schema. Below is the code: