dalenguyen / firestore-import-export

An application that can help you to backup and restore from Cloud Firestore | Firebase
https://www.npmjs.com/package/firestore-export-import
401 stars 109 forks source link

Auto generate firestore document ID #22

Closed nebitrams closed 5 years ago

nebitrams commented 5 years ago

@dalenguyen Thanks for contributing this library for data import. I managed to use it to upload my data.

{
  "collectionName" : {
    "ID00001" : {
      "venue" : "Super Ring"
    }
  }
}

It would be to be able to automatic generate the key because I am uploading new data. At the moment, I am trying to generate the ID outside this import utility.

dalenguyen commented 5 years ago

Hi @nebitrams. You can check out this package for auto generating document ID. https://github.com/dalenguyen/firebase-functions-helper/blob/master/docs/firestore.md