1
在Firestore安全設置中,您可以設置寫入/讀取數據的條件。Firestore每次寫入訪問限制
目前我有這片:
service cloud.firestore {
match /databases/{database}/documents {
match /{document=**} {
allow read: if request.auth != null && request.time <
resource.data.timeCreated + duration.value(1, 'h');
allow write: if request.auth != null;
}
}
}
現在我要限制的寫作;用戶應該只能每5分鐘發送一次數據。我怎樣才能做到這一點?
我該怎麼做? (對不起,但對我來說非常困難) –