mongoskin Questions

10

Solved

Using mongoskin, I can do a query like this, which will return a cursor: myCollection.find({}, function(err, resultCursor) { resultCursor.each(function(err, result) { } } However, I'd like to...
Tainataint asked 8/8, 2013 at 6:36

3

Solved

I am trying to return only one field sessions from a document. I'm using the current query (it returns the entire document): yield users.findOne({ '_id': id // var id holds object id ObjectId("5...
Distracted asked 29/9, 2015 at 23:59

3

Solved

I am using Mongoskin + NodeJS to add new keywords to MongoDB. I want to notify the user that the entry was a duplicate but not sure how to do this. /* * POST to addkeyword. */ router.post('/addkeyw...
Priestly asked 8/5, 2014 at 14:14

2

Solved

{username:'me', companies:{"yourcompany":{...}} I want to insert a company into a user record (user collection), to make: {username:'me', companies:{ "yourcompany":{...}, "mycompany":{...} } But...
Lyda asked 29/8, 2012 at 18:51

1

Solved

I've just installed Mongo, Node, etc. and when I try to update the database via my nodejs server, I get this error: MongoError: driver is incompatible with this server version Here are the versi...
Sanctum asked 20/5, 2015 at 23:55

1

Solved

I'm trying to understand nodejs, express and mongodb I'm running mongodb v 2.0.6 and latest nodejs and express and trying to connect express application with mongodb through mongoskin. the problem ...
Cracked asked 22/4, 2015 at 17:2

1

Solved

Im using MongoDb with Mongoskin. In a collection I'm saving events. Among other fields, these events have a start and an end, saved as Dates in Mongodb. events { start: "Date1", end: "Date2", ...
Reifel asked 26/9, 2014 at 9:9

3

Solved

I'm trying to avoid using callbacks when making mongodb queries. I'm using mongoskin to make calls like so: req.db.collection('users').find().toArray(function (err, doc) { res.json(doc); }); In...
Hainan asked 15/5, 2014 at 19:58

2

Solved

I have a data set like this: { name : 'Doc Name', photos: [ { name: 'photo1', url: 'http://.....' }, { name: 'photo2', url: 'http://......' } ], etc ... Using Monk https://github.co...
Peculium asked 3/2, 2014 at 1:16

1

Solved

I keep hitting my connection limit, but http traffic has remained consistent. I used MMS to profile my mongod process and saw that the number of connections keeps rising: I'm using the mongoskin...
Summer asked 25/8, 2012 at 18:40
1

© 2022 - 2024 — McMap. All rights reserved.