nosql icon indicating copy to clipboard operation
nosql copied to clipboard

.modify() doesn't evaluate anything

Open Sly-Ripper opened this issue 5 years ago • 1 comments

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

Sly-Ripper avatar Jul 21 '19 13:07 Sly-Ripper

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

petersirka avatar Jul 21 '19 15:07 petersirka