Documents

How to view, create, edit, and delete Firestore documents in Firepanel.

A document is a single record within a Firestore collection. Firepanel renders documents using the field definitions from the corresponding Content Type.

Viewing a Document

Click any row in the collection table to open the document view. This displays all fields and their values in a read-only format.

Document view

Creating a Document

1

Open a collection

Navigate to the collection where you want to add a document.

2

Click New Document

Click the + New Document button in the top-right corner of the collection table.

3

Fill in the fields

The document editor opens with all fields defined in the content type. Fill in the values for each field.

Document edit mode

4

Save

Click Save to write the document to Firestore.

Generating Documents with AI

Firepanel can generate sample documents for a collection using AI, which is useful for quickly populating a collection for development or testing. Generation uses Vertex AI (Gemini) on your own Google Cloud project.

Note:

AI document generation requires the AI feature (available on the Startup plan and above) and AI to be set up for the project. See AI settings to enable it. The Generate actions only appear when your plan includes AI.

Generating multiple documents

1

Open a collection

Navigate to a top-level collection. From the collection table, open the actions menu (or the Generate data button) and choose Generate data.

2

Set the count and guidance

Choose how many records to generate (between 1 and 25). Optionally add guidance — for example, "tech articles about AI, published in 2025" — to steer the content.

3

Generate

Click Generate. Firepanel writes the generated records directly to Firestore and reports how many were created. If some records could not be generated, a warning summarizes the failures.

Note:

AI sample-data generation is available on top-level collections only. Media, references, and relation fields are left empty for you to complete afterwards.

Generating a single document

When creating a new document, click Generate with AI in the document editor. Describe the record you want — for example, "a blog post about the rising temperature on earth" — and Firepanel writes it to Firestore, then returns to the collection list where the new document appears.

Editing a Document

1

Open the document

Click on a document row to open the document view, then click the Edit button (pencil icon).

2

Update fields

Modify the field values as needed.

3

Save changes

Click Save to write the updated document back to Firestore.

Deleting a Document

Note:

Deleting a document is permanent and cannot be undone from Firepanel.

To delete a document:

  1. Open the document view, or hover over the document row in the table
  2. Click the Delete button (trash icon)
  3. Confirm the deletion in the dialog

Special Views

ViewDescription
JSON ViewerClick the {} button to view the raw Firestore JSON of the document
Media PreviewMedia fields open a preview sheet for images and files
Component ViewerComponent fields display a structured component preview
Storage PickerMedia fields allow browsing Cloud Storage to select files