Reputation: 611
I am building an app that uses Firestore as the database. Entering data directly into Firestore is very time-consuming and I already have much of my starting data in a json file.
How can I upload that json data into Firestore? Is there something I can run in Xcode to push that json data into Firestore?
I appreciate any help or guidance!
Upvotes: 0
Views: 154
Reputation: 599766
Firebase has an import/export feature, but that uses its own format. There is nothing built into Firestore for importing data from other JSON files.
Luckily Firestore has an API, so folks have built add-in solutions. A quick search led me to this promising one: https://firebase.google.com/docs/firestore/solutions/schedule-export
Upvotes: 2