Quantcast
Channel: Update on MongoDB from NodeJS doesnt work - Stack Overflow
Browsing all 3 articles
Browse latest View live

Answer by aciddaniel for Update on MongoDB from NodeJS doesnt work

Problem I had was items ID, if you'll try to log the message you'll get an error saying something about uniqueness about ID blah bla :) so what I did was I saved id of existing item, then deleted it...

View Article



Answer by WiredPrairie for Update on MongoDB from NodeJS doesnt work

The id inside the loop isn't what you expect because of your use of the variable i. These are callbacks, inside a closure. So, when the findOne returns, the loop has already finished, meaning it's...

View Article

Update on MongoDB from NodeJS doesnt work

I am able to run the following update command from command line:db.Camera.update({_id:ObjectId("51059ca49c7b280809a2a81e")}, {$set: {"Selected":0}});But the following code in NodeJS doesnt work. When I...

View Article
Browsing all 3 articles
Browse latest View live


Latest Images