DEV Community

Discussion on: It's Here! Announcing the Release of Appwrite 0.12!

Collapse
 
diegovieira profile image
Diego Vieira

Is there a way to stop a document from being updated or created eg if one of the fields don’t match a regex?

Parse call this Triggers
docs.parseplatform.org/cloudcode/g...

Thanks

Collapse
 
eldadfux profile image
Eldad A. Fux

In Appwrite you will want to use Cloud Functions to handle this kind of extra logic. We're still checking for ways to make data validation more flexible without regex, as regex validation is complex and might come with some security risks: sec.okta.com/articles/2020/07/dang....