FlutterFlow Docs
Search…
Actions
Advanced Functionality πŸ€–
Firestore Content Manager
The Firestore Content Manager provides an easy way for you to visually create, edit, and add documents to your Firestore database. This feature is included in our Pro plans.
Firestore Content Manager

Prerequisites

Before getting started with this section, ensure you:

Opening Firestore Content Manager

To open the Firestore Content Manager:
  • Click on the Firestore tab in the left side menu.
  • Click on Manage Content. This will open up a new browser window.

Adding A Document

Before you add a new document to the collection, make sure you have some Fields added.
For example, the collection called exam_result with basic Fields looks like this:
To add a Document:
  • Select the Collection you would like to add a document to and then select + Add Document. A popup will appear.
    • Enter the information for the record.
    • Click Add Document.
Here's how the added document looks like:

Adding Advanced Fields

You may want to add some advanced Fields to store data such as a Document Reference, DateTime, LatLng, and Multiple Items.
Let's see how to add them using Firestore Content Manager.

Document Reference

To store the document reference, make sure you have a Field with Data Type set to Doc/Record Reference and Reference Type set to your Collection.
The Field looks like this:
To add a document reference:
  • First, select the Collection from which you would like to get a document reference.
  • Click on the id of the record to copy the document reference.
  • Now, select the Collection you would like to add a document to and then select + Add Document. A popup will appear.
    • Enter the other information for the record.
    • Find the Field that accepts document reference and paste it
    • Click Add Document.
Learn more about why you need to store document references here.

Date Time

To store the DateTime, make sure you have a Field with Data Type set to Timestamp.
The Field looks like this:
To add a Date Time:
  • Select the Collection you would like to add a document to and then select + Add Document. A popup will appear.
    • Enter the other information for the record.
    • Find the Field that accepts DateTime.
    • Click on it, choose the Date and then click OK.
    • Now, select Time and click OK.
    • Click Add Document.
To modify the given Date Time, click on the Date Time Field again to open the Date Picker dialog.

Lat Lng

To store the Latitude and Longitude of any place, make sure you have a Field with Data Type set to Lat Lng.
The Field looks like this:
To add a Lat Lng for any place:
  • Select the Collection you would like to add a document to and then select + Add Document. A popup will appear.
    • Enter the other information for the record.
    • Find the Field that accepts LatLng. There are two ways you can add LatLng.
      1. 1.
        Directly add LatLng value for any place.
      2. 2.
        Click on the find place icon (
        ) to find and get the LatLng.
    • Click Add Document.

Multiple Items

To store the multiple items of the same data type, For example, a list of Fruit names, make sure you have a Field with Data Type set to any from this and Field Type set to List.
The Field looks like this:
To add data to List Field:
  • Select the Collection you would like to add a document to and then select + Add Document. A popup will appear.
    • Enter the other information for the record.
    • Find the Field that accepts a list and click on it.
    • Click on the + Add Item and enter the value.
    • Similarly, add more items.
    • Click Add Document.

Updating A Document

To update a document:
  • Select the pencil icon in the row of the Document you want to update. You can also open the record by long-pressing any field in the Document (excluding the ID).
  • A popup will appear. Update the document as needed and then select Update Document.
  • You will now see the updated information displayed in your collection.

Other Tips & Tricks

  • Clicking on the ID field will copy the *reference* to a record. This is a helpful feature when you need to reference a user while you are creating a document.
  • Clicking on assets will open the asset URL.