1

I want to delete child objects where I am using parent object id as a reference, when I delete parent object in nodejs mongodb

Hammad ul Hasan
  • 306
  • 3
  • 15

1 Answers1

2

You need to query over all the relevant records and delete them.

Similarly, check this answer.