[SOLVED] Do I need to Delete Children Individually with Cascade Delete One to Many?
- 0
- Self Hosted
Before you assume the answer, I'm aware if I delete the parent it'll delete the children, but I want to know if I can update the parent, and then it'll auto-delete the children π -- it would make sense if it didn't but I'm getting a server error trying to do it (my N8N package so can't tell the exact error) so I wanted to check if I could
As far as I know, you will need to do this manually. But let me check and make sure
Yeah I think you will need to create a helper function that removes the children.
Although, to be absolutely sure, you could create a dummy collection with relations, and test it out!
gotcha!
thank you!
I did haha, I was just curious to know an absolute L)
π
thank you!
[SOLVED] Do I need to Delete Children Individually with Cascade Delete One to Many?
Recommended threads
- Send Email Verification With REST
I am using REST to create a user on the server side after receiving form data from the client. After the account is successfully created i wanted to send the v...
- Use different email hosts for different ...
Hello, I have 2 projects and i want to be able to set up email templates in the projects. Both projects will have different email host configurations. I see ...
- Migrate from cloud to localhost
Hello everyone. I need to migrate my test project from cloud to localhost, however it seems that this is possible only if a self-hosted appwrite instance it's h...