Back

condition for document creation

  • 0
  • Flutter
  • Cloud
d_honig
19 May, 2024, 11:41

I would like to limit the creation of documents in my database by adding a timeout (so users cannot create a document more than once every 10 minutes, for example). What would be the best way to do this server side?

TL;DR
Developers want to set a condition to limit document creation frequency (e.g., once every 10 minutes) in the database. Best way is to handle this server side by comparing creation timestamps and rejecting requests within the specified timeframe.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more