Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.modify() doesn't evaluate anything #48

Open
Sly-Ripper opened this issue Jul 21, 2019 · 1 comment
Open

.modify() doesn't evaluate anything #48

Sly-Ripper opened this issue Jul 21, 2019 · 1 comment

Comments

@Sly-Ripper
Copy link

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
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants