Documentation

    How to use Firestore Studio, from the first connection to restoring a change.

    Editing documents

    Create a document

    Add a document with an automatic or chosen ID.

    1. Step 1: Open a collection tab and choose New Document in the toolbar.
    2. Step 2: In Path, keep the placeholder to get an automatic ID, or type the document ID after the collection path.
    3. Step 3: Add fields in the Fields tab, or paste an object in the JSON tab.
    4. Step 4: Choose Create.

    The path can also point into a subcollection, for example users/u1/orders/o1. The app refuses empty segments, . and .. as IDs, IDs of the form __x__, and IDs longer than 1500 bytes. It names the problem in the dialog.

    Warning: If the ID already exists, the app asks Document Already Exists. Merge combines your fields with the existing document and keeps the other fields. Overwrite replaces the whole document. Cancel keeps the dialog open so nothing is lost.

    Edit a document and its field types

    Change several fields at once in the Edit Document dialog.

    The Edit Document dialog in Fields mode
    1. Step 1: Open the row menu (the button at the start of the row) and choose Edit Document. Double-clicking the Doc ID does the same.
    2. Step 2: Change values in the Fields tab, or edit the JSON in the JSON tab.
    3. Step 3: Choose Save.

    Closing the dialog with Cancel or Esc discards your changes. You can add and remove fields. Switching from JSON to Fields with invalid JSON is blocked with the banner Cannot switch mode — fix the following.

    The row menu also offers Open in new Tab (shows only that document), Export Document, Import to Document (import fields from a JSON file into this document), Copy with Document ID, Resource Path and Data as JSON, and Reveal in Firebase Console.

    Field types in the editor:

    In the Fields tab each row has a name, a type and a value. The Field type list offers:

    • String, Boolean, Null
    • Number. On Enterprise (native) databases this is split into int64 and double.
    • Timestamp with a date and time picker
    • Geopoint with latitude and longitude
    • Reference with a document path such as users/u1
    • Map and Array, which can be nested

    Note: Bytes and vector values have no editor. They are kept as they are when you save other fields. The app refuses values it cannot read by name instead of guessing, and an untouched field is not rewritten when you change another field.

    Edit a cell in place

    Double-click a cell to change one field.

    1. Step 1: Double-click a cell, or select it and press Enter or F2.
    2. Step 2: Type the new value.
    3. Step 3: Press Enter to save, or Esc to cancel. Clicking elsewhere also saves.
    • Strings, numbers, booleans, null and timestamps can be edited in place. A timestamp opens a date picker with a Now option.
    • Maps, arrays and references use the … button.
    • Geopoints are not editable in place. Use Edit Document.
    • Letters typed into a number are refused and nothing is written. A string that looks like a number stays a string.
    • Only the edited field is written. Other fields stay as they were, including integers above 2^53.

    Note: Every edit is written to the audit log with the earlier value, so you can restore it. See Restore a Firestore change.

    Rename, duplicate, move and copy a document

    Create a new document from an existing one, in the same or another project.

    The row menu of a document, with Edit, Rename, Move, Duplicate, Copy and Delete
    ActionResult
    Rename DocumentCreates a document with the new ID and deletes the original.
    Duplicate DocumentCreates a copy with a new ID in the same collection.
    Move Document toCopies the document to a different collection or project and deletes the original.
    Copy Document toCopies the document to a different collection or project and keeps the original.
    1. Step 1: Open the row menu and choose the action.
    2. Step 2: For Move and Copy, choose the target project and database under To (Target) and type the target document path, for example users/newDocId. For Rename and Duplicate, type the new document ID.
    3. Step 3: Leave Include subcollections on to bring nested collections along. It is on by default and the dialog says what it means for this action.
    4. Step 4: Tick Overwrite if document already exists only if you want to replace an existing target.
    5. Step 5: Choose the action button.

    Warning: Rename and Move delete the original after the copy. With Include subcollections off, subcollections are not moved and stay behind under a document that no longer exists, so they do not show in the grid. The dialog refuses a target that is the same as the source, and shows the reason above the buttons.

    Delete a document

    Remove one document, with a confirmation.

    1. Step 1: Open the row menu and choose Delete Document.
    2. Step 2: Read the Delete Record confirmation and choose Delete.

    The confirmation has a Don't show this again box. To turn the confirmation back on, use Settings, Query Setting, Ask Before Deleting a Document. A document that has subcollections always asks, whatever the setting.

    Warning: Deleting cannot be undone from the grid. The audit log keeps the earlier data, and you can restore the document from there. See Restore a Firestore change.

    Update, delete and compare selected records

    Act on the rows you ticked.

    Update Selected Records: one new field applied to six selected documents

    Tick the checkboxes of the rows you want, or the header checkbox for all loaded rows. A bar shows N selected with Update, Delete, Compare and More.

    1. Step 1: Choose Update. The dialog Update Selected Records takes fields in the Fields tab or an object in the JSON tab.
    2. Step 2: Set the Batch size (up to 500 documents per write).
    3. Step 3: Confirm. The update runs as a background task and writes the fields to every selected document.

    Delete opens Delete Selected Records? with the account, project, database, collection and record count. It has the Include subcollections option and a batch size. More offers Move, Duplicate and Copy to Collection with a choice of what to do when a document already exists in the target: Overwrite replaces it, Merge combines fields, Skip leaves it unchanged.

    Warning: Bulk delete cannot be undone from the grid. If you loaded the rows with a Select projection or a reshaping pipeline, the app warns that only the loaded fields are available, and refuses row-based copy, move and rename that would write partial documents.

    To compare documents, tick two or more rows:

    1. Step 1: Tick at least two rows. With fewer the app says Select at least 2 documents to compare.
    2. Step 2: Choose Compare in the selection bar.

    The dialog shows the documents side by side as JSON, aligned field by field. Differences are highlighted in red. A different key order inside a map is not reported as a difference.

    In a time-travel view, Compare and Restore with live compares one document at the past time with its live version and lets you restore it. See Time-travel and restoring from a past time.

    Add, rename and delete fields across documents

    Change a field on selected documents, query results or the whole collection.

    Use the toolbar buttons Add Columns and Rename/Delete Columns, or the same entries under More in the selection bar. In both dialogs To modify chooses the scope: Selected Docs, Collection, or Query Results. The dialog shows how many records are affected.

    1. Step 1: Choose Add Columns to add fields with a value to every document in the scope. Enter fields or JSON and choose Add Column.
    2. Step 2: Choose Rename/Delete Columns (dialog Rename / Delete Columns). Pick Rename or Delete, type the field name and, for Rename, the new name.
    3. Step 3: Use Add Operation to queue more than one change, then choose Modify Columns.

    Warning: These actions cannot be undone. Both run as background tasks. Check the scope shown at the top of the dialog before you confirm. Selecting Collection changes every document in it.