Hello,
I need the following (@Node syntax):
1) Import several rows from Excel (done);
2) Delete *all* records from persistedModel where "externalId" equals a value extracted from the imported data;
The Excel can contain several hundred records so I don't want to:
let DeleteID = model.find({externalId: myExcelValue} ...) for every row, and if found call another model.destroyById({id: DeleteID})
Is there a quick or single method i can use to accomplish this task, or do I missed something?
Thank you!
AR