Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to import CSV files into Firebase

I see we can import json files into firebase.

What I would like to know is if there is a way to import CSV files (I have files that could have about 50K or even more records with about 10 columns). Does it even make sense to have such files in firebase ?

like image 792
Poorani Avatar asked Nov 26 '15 05:11

Poorani


People also ask

How do I import CSV or JSON to Firebase cloud firestore?

Import CSV data into an existing Firestore collectionRight-click on the collection in the sidebar to do so and select Import from there. Make sure to adjust the Field Names in the field mapping table so that they match the structure of the existing documents in the collection.

How do I save a CSV file in firebase?

Grab the “File Button” component from the right-hand panel and drag it to the workspace to the left. In the right-hand panel, enable the “Parse Files” button, then click the new button and choose the CSV file you want to work with to upload it to the Retool frontend.


1 Answers

I can't answer if it make sense to have such files in Firebase, you should answer that.

I also had to upload CSV files to Firebase and I finally transformed my CSV into JSON and used firebase-import to add my Json into Firebase.

there's a lot of CSV to JSON converters (even online ones). You can pick the one you like the most (I personnaly used node-csvtojson).

like image 84
seblucas Avatar answered Nov 03 '22 18:11

seblucas