So I want to be able to create a snapshot of the database as it is to create a "development" collection.
I am able to export all the data currently on firestore using the tutorial here https://firebase.google.com/docs/firestore/manage-data/export-import#export_data.
Firebase only shows how to import specific collections from that stored export.
How can I import the export to a specific "development" collection within firestore?
For example:
Cloud Firestore Database Collections (day 1)
- Users (as of day 1)
- Has a document for each user
- Tasks (as of day 1)
- Has a document for each task
- Chats (as of day 1)
- Has a document for each chat
-> export all this data to google cloud platform bucket -> import all the exported data into a “development” collection
Cloud Firestore Database Collections (day 2)
- Users (as of day 2)
- Tasks (as of day 2)
- Chats (as of day 2)
- Development
- Users (as of day 1)
- Tasks (as of day 1)
- Chats (as of day 1)
I can then use this development collection as a database snapshot for testing, then the other collections can be used in production as normal.