1

I have /members/($chatId)/($userId) firebase datas. (chat room with some users)

How to prevent write new userid, if the count of users in chat more than any number (ex. 6)? Of course, how to do it using firebase security rules. If you write solution in firebase bolt is more awesome ;) Thank you!

Yura Zatsepin
  • 716
  • 7
  • 7
  • The security rules for the Firebase Database have no `count` operator. Kato described two workarounds for that a while ago: http://stackoverflow.com/questions/22644202/limit-number-of-records-that-can-be-written-to-a-path-reference-other-paths-in – Frank van Puffelen Jun 03 '16 at 12:25
  • Thank you. Sorry for duplicate. – Yura Zatsepin Jun 03 '16 at 13:01

0 Answers0