I'm trying to create a Firestore rule which only allows a user to list documents from a collection where they're filtering a field.
// would fail: db.collection('documents').get(); // would succeed: db.collection('documents').where('fieldId', '==', 123456).get();
Is there a way to accomplish this through Firestore rules?
https://stackoverflow.com/questions/66937142/firebase-firestore-only-allow-user-to-query-a-collection-if-there-is-a-filter April 04, 2021 at 08:54AM
没有评论:
发表评论