I need count for a approved = true users on mongodb
.
Users.count #it showing total users count from db
I tried Users.count({:approved => true})
But it showing wrong number of arguments ( 1 for 0 )
Help me.
Thanks in advance.
try
db.user.where({:approved => true}).count()
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With