I am trying to play with bulk operations in MongoDB but keep getting the following error:
TypeError: db.items.initializeUnorderedBulkOp is not a function (shell):1
... when executing this line in shell:
var bulk = db.items.initializeUnorderedBulkOp();
What am I missing here?
PS: the mongo server I use is hosted on MongoLab, db.version()
reports version 2.6.5
.