Is it possible to insert in Mongo with condition;
//Pseudo code Bulk Insert Item : If Key exists Skip, don\'t throw error If key does not exist Add
Use setOnInsert
setOnInsert
db.collection('collection').updateOne( { _id: data._id }, { $setOnInsert: { ...data } }, { upsert: true }, )