Mathias Malmqvist
Mathias Malmqvist
Got the same problem. Seems to be due to changes in Express 4.0.
Any help appreciated! Maybe the problem is that db.User refers to the model, and I need to make the call on the collection? If so, can I access the collection...
Yes, progress! calling `db.User.collection.update(myquery, myupdate, function(err, numAffected) {})` seems to work!
Would be very helpful if your documentation mentioned collections, how they're not the same as Models and how to make calls on them...
Looking closer at it now, I guess the path() function is just the selector you call on a property before you can go on to set other things for that...