Deleting Document and Its Referenced Documents
I would like to know if it is possible and how i can delete a document and also all documents where it has a relationship with the document i am deleting.
So i have a "Users" and "Transactions" table (there are more but this is for simplicity sake). I want to delete a specific document/user from the "Users" table and I also want to be able to delete all documents in the "Transactions" table that has a relation ship with the specific user i am deleting.
I was thinking of searching for all documents that has the id referenced in the "Transactions" table using the Index but i was wondering if there is a better approach.
I hope you understand.
Thanks in advance.
