Using the replace function in firestore security rules

后端 未结 3 511
醉梦人生
醉梦人生 2021-01-16 10:49

I\'m struggling with Firestore security rules. I want to check on a value that needs the replace function, i.e. an e-mail address. I can find some documentation in the gener

3条回答
  •  轮回少年
    2021-01-16 11:26

    var emailSanitized = email.replace('.' , '.'); db.collection('someCollection').where('members.' + emailSanitized, '==', 'admin')

提交回复
热议问题