You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The answer in the stackoverflow question said, "only the callback flavor of db.collection() works,
so I tried:
db.collection('foobar', function (err, coll) {
logger.debug("got here");
if (err) throw(err);
bulk = coll.initializeUnorderedBulkOp();
... same code as before
We never get to "got here" implying that the "callback flavor" of db.collection() was dropped for 3.0? Unfortunately, my python is way better than my JS prototyping skills, so looking at the skin source code doesn't make any sense to me.
What is the right way, with mongoskin 2.1.0 and the 2.2.0 mongodb JS driver, to do a bulk operation, or is this not implemented at all anymore?
The text was updated successfully, but these errors were encountered:
I've read the various bits of literature, and I'm seeing the same problem that the questioner in
http://stackoverflow.com/a/25636911
was seeing.
My code looks like something like this (I wrote it in coffeescript and am converting to js pseudocode):
The answer in the stackoverflow question said, "only the callback flavor of db.collection() works,
so I tried:
We never get to "got here" implying that the "callback flavor" of db.collection() was dropped for 3.0? Unfortunately, my python is way better than my JS prototyping skills, so looking at the skin source code doesn't make any sense to me.
What is the right way, with mongoskin 2.1.0 and the 2.2.0 mongodb JS driver, to do a bulk operation, or is this not implemented at all anymore?
The text was updated successfully, but these errors were encountered: