codediodeio / firestore-migrator

:bullettrain_side: A CLI utility for moving data to and from Cloud Firestore
https://angularfirebase.com/lessons/import-csv-json-or-excel-to-firestore/
317 stars 94 forks source link

Some strings get imported as numbers #24

Open latifs opened 5 years ago

latifs commented 5 years ago

Hey guys, Trying to import a collection from a JSON file that happens to be in this format:

{
    "manufacturer": "hello",
    "name": "world",
    "grading": "8",
    "status": "completed",
    "submitted_on": "{\"type\":\"timestamp\",\"data\":\"10/4/18\"}",
    "submitted_by": "fox mulder",
    "approved_for": [
      "group-2",
      "group-3",
      "group-4"
    ]
  },

For some reasons grading gets imported as a number. Am I Missing something?

Thanks

yishin commented 5 years ago

I have same issue. { "id": "store", "name": "store name", "nameBranch": "", }

imported: "store" "store name" 0 <=== Number

pranavpari commented 4 years ago

Any luck?? I am facing the same issue.