Nedb $addToSet pit

  node.js, question

clipboard.png

clipboard.png

The database is shown in Figure 2. At present, fruits are empty. After I execute updae

clipboard.png

Actually, I didn’t revise it on the basis of the original record, and I was drunk.

Attached is the NEDB github address.https://github.com/louischatriot/nedb

You opened the database file, please don’t do this. Only need to read according to the conventional way, will get the correct data.