Yusuf Mohd Suhair
Yusuf Mohd Suhair

Reputation: 101

How to count firebase database in python using pyrebase?

How can we do count() for firebase database in python ?

as for example ..

count = db.child("users").get().count()

Upvotes: 0

Views: 1174

Answers (1)

Reznik
Reznik

Reputation: 2806

You can use the len function for this as:

len(db.child('users').get().val())

Upvotes: 1

Related Questions