I'd like to use the MongoDB native JS driver with bluebird promises. How can I use Promise.promisifyAll() on this library?...
I'm using Node.js v0.12.0 with MongoDB driver v1.4.34. So, is there any difference between converting ObjectID to String with toString and toHexString methods?...
I have an open source project that deals with mongodb database. I am trying to make a function that queries the database to check if entry exists.   The problem is when if_exists() returning true or false it returns undefined since the mongodb driver...
I want to retrieve a large JSON chunks from MongoDB using Node.js  Here's json in MongoDB:  {   "nid": "nanodev-0000000015",   "unixtime": NumberInt(1416561973),   "cpuload": "0.71",   "cpucore": Nu...
I've been through the docs, tutorials and SO. I just can't seem to find the right answer on how to properly update an entry that's already in the database.   I can insert data just fine but the second I try to update it using the below qu...
node: 0.10.13 mongo: 2.4.1 mongodb-native: 1.3.23   Question:     How do I insert an array of simple strings as new documents with a single call? I don't want to convert it before. I am looking for some mongo magic here. The $push, $each things...
i have this function "saveUser", which gets value from textbox, and updates information of the user and then uses ajax to post the object to our updateuser service.  function saveUser(event){      event.preventDefault();      var errorCount =...
I am writing a program in Node.js using MongoDB and I want to update a database when certain files are modified.  Inside the database I store the mtime of each database entry and I want to compare this to the mtime of the file to see if the database...
I'm trying to wrap my brain around promises and I'm refactoring some nested callbacks into promises. I'm encountering something I don't understand and any help anyone could provide would be appreciated. There's definitely somethin...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.