Reputation: 314
I want to delete child objects where I am using parent object id as a reference, when I delete parent object in nodejs mongodb
Upvotes: 1
Views: 489
Reputation: 31
You need to query over all the relevant records and delete them.
Similarly, check this answer.
Upvotes: 2