I\'m pulling data from a RETS(XML) feed and saving it in a local MongoDB using node and mongoose.
Periodically I need to update the documents and delete the inactive one
On MongoDB, to update multiple documents (not just one) using Mongoose you can use the multi option:
Model.updateMany({ size: 'lage' }, { $set: { size: 'large' } });
See more on in the Mongoose documentation for updating documents and here