Top "Mongojs" questions

MongoJS is a Node.

Get latest MongoDB record by field of datetime

I have a collection like this: { 'datetime': some-date, 'lat': '32.00', 'lon': '74.00' }, { 'datetime': some-date, 'lat': '32.00', 'lon': …

node.js mongodb mongojs
Inserting the current datetime in mongodb

I have been having trouble inserting an actual datetime object in mongodb using the mongojs driver for nodejs. Any help? …

node.js mongodb mongojs
Callback was already called async parallel

Hi I am trying to use the Async module to retrieve two users and do some processing after they have …

javascript node.js asynchronous mongojs
How do I iterate over an entire MongoDB collection using mongojs?

I'm using mongojs and I'm trying to iterate over all elements in a collection index = 0 db.keys.find({}, {uid: 1, _id: 0}).…

javascript mongodb coffeescript iterator mongojs
MongoDb : How to insert additional object into object collection?

I have a document "owner" that can have "n" number of camps and camps have "instructors" and instructors have "classes". …

javascript node.js mongodb mongojs
TypeError: Cannot read property '_id' of undefined

I am getting error "TypeError: Cannot read property '_id' of undefined" on a simple post request to save a …

node.js mongodb express mongojs
Send MongoDB query result as JSON using express

I'm writing an application where I use express, Node.js and MongoDB (using mongojs). I have a module db.js …

javascript node.js mongodb express mongojs
get mongodb data to nodejs array?

I'm having trouble getting mongodb data into nodejs array as follow: Test db: { "supportTicket" : "viT8B4KsRI7cJF2P2TS7…

node.js mongodb callback mongojs
Why do I need Mongoose or Mongojs for Node.js?

Major Questions Currently I'm very confused, the main questions are: What is the use of Mongoose/Mongojs? What would be …

node.js mongoose mongojs
MongoDB query for document older than 30 seconds

Does anyone have a good approach for a query against a collection for documents that are older than 30 seconds. I'm …

javascript mongodb mongodb-query mongojs