Editing documents
Once write access is enabled for a database, documents become editable.
Inline editing
Double-click a cell in the table to edit it in place. Press Enter to commit, Esc to cancel.
For anything more involved, open the document in a split pane or its own tab, where every field is laid out with a proper editor for its type.
The field editor
Firestore values are not all strings. Each type gets an editor that understands it:
- Arrays and maps — add, remove and reorder members, with nested types preserved
- Timestamps — a date and time picker that keeps sub-second precision
- GeoPoints — latitude and longitude as numbers
- References — a document path, validated
- Bytes — kept as bytes, not silently converted to a string
You can add a new field, rename one, or delete one. A deleted field is genuinely removed from the document rather than set to null.
Server-side transforms
Some changes should be computed by Firestore, not by you. These are available directly in the editor:
| Transform | Effect |
|---|---|
| Server timestamp | Firestore writes the time it received the write |
| Increment | Atomic numeric change, safe under concurrency |
| Array union | Add members that are not already present |
| Array remove | Remove members wherever they appear |
Using increment rather than read-modify-write is the difference between a counter that is correct and one that is approximately correct.
Values are never coerced
FireFetch does not round-trip your data through a JavaScript Number() or String():
1.0stays a double and does not become the integer1- Integers beyond 2⁵³ keep every digit
- Bytes stay bytes
- Microsecond timestamps keep their microseconds
This matters most in the places you are least likely to check — an id stored as an int64, or a timestamp compared for exact equality by your application.
Copy, move and duplicate
- Duplicate a document to use it as a template for a new one
- Copy or move documents between collections
- Delete recursively to remove a document together with its subcollections, so nothing is orphaned
Related
- Change history and undo
- Bulk operations — the same edits, across many documents
Something unclear or out of date? Email[email protected].