如果用户不包含在数组中,Firestore 只允许修改字段
Firestore only allow modification of field if user not contained in array
我有这样的文档
Field Score: number
Field usersThatRated: array
我如何在 firestore 规则中强制执行只有 ID 未包含在 usersthatRated
数组中的用户才能 increment/decrement 得分?
我有这样的文档
Field Score: number
Field usersThatRated: array
我如何在 firestore 规则中强制执行只有 ID 未包含在 usersthatRated
数组中的用户才能 increment/decrement 得分?