Database & APIs

Hi everyone!

FF noob here and need help displaying a list of documents from a subcollection under the authenticated user. Here’s the context:

Context:

  • I’m using Firebase as my database.

  • I have a Users collection in Firestore. Each user document has an Accounts subcollection.

  • I’m using Firebase Authentication to authenticate users.

  • My objective is on my "Accounts" page: I want to display all the accounts (documents) from the Accounts subcollection for the currently logged-in user.

What I Need:

  • For now, I just need to list the names of the accounts.

    • Each account document has a name field (string) that I want to display.

Question:

Can someone walk me through the process step-by-step for setting up the Firestore query in FlutterFlow, and how to display the account names on a page?

Any help would be greatly appreciated! 😊

Thanks in advance!

What have you tried so far?

How I tried to do it:
Here is a screenshot of the page and the widgets tree, so you have a context for the page:

Column Querry:


List view Querry:

Text Field value set from variable:


Result:

Did you check FlutterFlow's Documentation for this topic?
Yes
9 replies