How to limit the number of documents a user can create in a collection?
- 0
- Databases
- Accounts
- General
- Users
- REST API

I have addresses collection and a user can have multiple addresses. I want to set a limit of 20 addresses per user. This is also a potential security risk as one account may create as many records in the collection as allowed by the rate limit and thus potentially infinitely increasing the collection size.

Just like any other validation, you'd use an Appwrite Function
Recommended threads
- Update Document - GO
Hello Appwrite team, currently I am having trouble updating collection documents on GOlang . Can you help me with that? --- the README on GitHub is stale whil...
- Is Appwrite Pro available for teachers?
Hi everyone 👋 I noticed that Appwrite Pro is available for free as part of the GitHub Student Developer Pack, which is amazing! I’m a university faculty memb...
- Help on importing data - error Unknown a...
Hey There! I want to create a local environment on my new computer, i wish to get the information i have on my staging appwrite cloud server. When running mig...
