petersirka / nosql

NoSQL embedded database for small node.js projects
Other
295 stars 48 forks source link

.modify() doesn't evaluate anything #48

Open Sly-Ripper opened 5 years ago

Sly-Ripper commented 5 years ago

Node v12.6.0 nosql v6.1.0

db.modify({ '+coins': 1 }, { id: 1, 'coins': 1 }).where('id', 1);

Results: 1st: {"id":1,"coins":1} 2nd: {"id":1,"coins":1,"+coins":1}

Also if you specify true as second arg instead of an object it just inserts true into the file, no object

petersirka commented 5 years ago

Hi @Sly-Ripper, I'll try to update NoSQL module this week. I'll let you know.