Export and import Firestore data as JSON
Export Firestore documents or collections as JSON and import them with QueryCanopy while preserving typed values and subcollection paths.
Choose what goes in the file
- For one document, open the inspector and select Exporter le document.
- For a collection, select Exporter la collection. You can include its subcollections. The archive preserves relative paths and Firestore types.
- For query results, select Exporter la requête and prepare the export from the queue. If the query selects specific fields, the file contains those fields.
Start collection and query exports from the operations queue, then download the JSON file.
Import into a collection
- Open the destination database and choose Opérations → Importer du JSON.
- Select the file. QueryCanopy accepts a collection archive, typed Firestore documents or ordinary JSON objects.
- Choose how to handle existing documents. Ignorer keeps the current document. Fusionner les champs applies the imported fields. Remplacer les champs uses the fields from the file.
- Review the destination database, then start the task and check each document’s result.
Add fields to one document
In the inspector, choose Importer des champs and apply the fields to the draft. Select Enregistrer once the values are ready to save. A 64-bit integer such as 9223372036854775807 keeps every digit.