I want to conceive a relationship such as that if i destroy a parent object the child object is removed too on MongoDB (Spring)
How to achieve this ?
I know that in Python's Flask this could be done with EmbeddedDocumentField
but how to do it in Java's Spring boot.
Thank you,