google-cloud-firestorefirebase-console

Duplicate object Firestore console


I need to duplicate a few items in the Firebase Firestore console. I tried, but there seemed to be only two options: Delete the document and Delete all fields.

Is there a option to duplicate an object in the console?


Solution

  • There is no feature in the Firebase console to duplicate a Firestore document. If you think that'd be a useful feature for many user, you could file a feature request for it.

    For now the easiest way to duplicate a document's contents is probably to write a small Node.js script for it.