ericswpark
If I have a "User" collection and a "Post" collection, and if I'm trying to define a many-to-many relation between the two, what is restricted exactly if I choose "restrict" for the document deletion setting? Does that mean posts cannot be deleted as long as they have authors, or vice versa?
TL;DR
In the support thread, a developer is asking how the "restrict" setting works when defining document relationships between the "User" and "Post" collections. They want to know what is restricted if they choose this option for document deletion.
In response to their question, the "restrict" setting means that if a document is connected to another document through a relationship, it cannot be deleted as long as the relationship exists. In this case, if the developer chooses "restrict" for document deletion, posts cannot be deleted as long as they have authors, and vice versa.
Solution: To implement the desired behavior, the developer can choose the "restrict Recommended threads
- Type Mismatch in AppwriteException
There is a discrepancy in the TypeScript type definitions for AppwriteException. The response property is defined as a string in the type definitions, but in pr...
- What Query's are valid for GetDocument?
Documentation shows that Queries are valid here, but doesn't explain which queries are valid. At first I presumed this to be a bug, but before creating a githu...
- Appwrite exception: user_unauthorized, t...
After refreshing the app it is working perfectly