Counting records in a collection

How can I easily count the records in a collection?

Hi @alanb ,

Welcome to the community :partying_face:

You can see next the to the collection name.

image

Thank you

Sorry, I should have been more specific. How can I do this programmatically?
eg. I want to count the number of todos that have been completed…I know when the completed button on an item has been pressed and can trigger an action to count these. But how can I do this?
Thanks for early reply

I don’t think there’s a way to count it on the Database. But you can display the count in your app. You can add a text component and add Logged in user’s > Tasks ( Relationship name) Count from magic text and add a filter to the count that Completed true/false property is true.

If you want to see the completed ones only from every users then you can add a text component and add Tasks ( Collection Name) Count from magic text and add a filter to the count completed true/false property is true.

And Your Welcome!

That’s great, have managed to do it OK
Many thanks

1 Like

Great and Your Welcome!