Use populate and pre
Aneesh540 opened this issue · comments
Aneesh Jain commented
MongoDB takes 2 passes to read data. The function is not according to preferred standards of nodejs
Use populate instead and pre to delete portfolio before deleting user