Is there any method for modifications like “OnCascade” in SQL?

Hello ! Thanks for the informations in Many to many relationship and linked table/collection!

There is another question i would like to ask : Is there any method for modifications ? Something like the “OnCascade” in SQL.

Thank you !

Hi @Ghilas_Kasmi ,

There is no built in cascade deletes in MongoDB.

However you can use change streams (on prem installation) or trigger on delete if you use atlas:

The above blog show an example.

Ty
Pavel

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.