0

How to fetch count of unique IDs number from firebase realtime database.Is there any query for this?"Do I have to fetch all data for getting count of data?

Frank van Puffelen
  • 565,676
  • 79
  • 828
  • 807
I.Yilmaz
  • 49
  • 8

1 Answers1

2

Firebase queries currently don't have a way to return only the number of nodes. The only way is to pull down the nodes and count them or create a child counter that you can increment each time you create a sub node.

David Innocent
  • 606
  • 5
  • 16