Open Sly-Ripper opened 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}
{"id":1,"coins":1}
{"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
true
Hi @Sly-Ripper, I'll try to update NoSQL module this week. I'll let you know.
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 insertstrue
into the file, no object