I am willing to export all my previous and all future firestore documents to Big Query as tabular format.
Example: If I have a User collection in firestore like:
{
"name": "Jon",
"score": 10,
}
Then the BigQuery table should look like this:
-------------------------------------
| id | name | score |
----------------+----------+---------
| <document_id> | Jon | 10 |
----------------+----------+---------
I have tried using
- Export Collections to BigQuery. This does not export the data in the above format; it rather keeps track of the each insert/update/delete events.
- Manually creating a table in the dataset and importing the backup from firestore. This does get me the BigQuery table view I want, but that is not updated automatically (like the extension does).
What do I do to achieve the tabular format of the document mentioned above as well as it updates automatically when the firestore documents are updated? Do I have to write my own cloud function to update all the data to BigQuery?