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
  • 499,950
  • 69
  • 739
  • 734
I.Yilmaz
  • 39
  • 7

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
  • 546
  • 4
  • 15