I have a function which returns a list of objects, I need some way so that i can populate this data in local firestore emulator and not in actual cloud firestore instance. How can I achieve it?
I have a function which returns a list of objects, I need some way so that i can populate this data in local firestore emulator and not in actual cloud firestore instance. How can I achieve it?
The Firestore emulator can import data on startup by starting it with:
firebase emulators:start --import=./dir
The data to be imported has to be in a proprietary format though, so you'll want to convert your data into that format by:
firebase emulators:export ./dir.