louischatriot / nedb

The JavaScript Database, for Node.js, nw.js, electron and the browser
MIT License
13.46k stars 1.03k forks source link

$setOnInsert is not work?????? #687

Open zhang1395hao opened 2 years ago

zhang1395hao commented 2 years ago

Hello, excuse me, why does nedb not have the $setOnInsert setting option? This will make the operation of batch inserting data and updating data extremely complex. If there is $setOnInsert, you can specify some fields that do not need to be updated. Now there is only $set, which is very uncomfortable. I want to ask, is there an alternative?