Count number of item in a list field (Firestore document)

Resolved

Hello,

I'm a new user of FlutterFlow and to discover i try to migrate one of my application from React Native Expo to FlutterFlow.

For now, i've something i'm unable to do and i don't know how to do it.

I've a firestore collection (stroll) with this schema

In this one, as you can see, you have a locations field who is a list of location documents in another collection.

I try to count number of location defined in a specific stroll to show it in a listview element matching this specific stroll.

I try to replace my "X" with the number of location for this specific stroll. So two find, i don't understand how i'm able to define on this specific card (in a listview) which stroll is it and how count number of location in this stroll document.

Thank you for all the help you will be able to provide me.

1
4 replies