Stack: Firebase, Angular 14 + Angularfire
I have users and each users is allowed to only have 10 trackers / blog posts / videos, which is currently only enforced on the Frontend.
How can I forbid the creation of a document when the user already has a certain amount of documents (with his uid stored as a field) in the Firestore security rules?
I am using Firestore security rules version 2