How do import data from cloud firestore to the local emulator?
问题 I want to be able to run cloud functions locally and debug against a copy from the production data. Is there a way to copy the data that is online to the local firestore emulator? 回答1: You can use the firestore-backup-restore to export and import your production data as JSON files. I wrote a quick hack to allow for importing these JSON in the Firebase Simulator Firestore instance. I proposed a pull request and made this npm module in the meantime. You can use it this way: const