NODE-2ClosedDone
Remotely shard a collection using the mongodb nodejs driver
I'm trying to shard a collection using the mongodb nodejs drive. Instead of using the admin ctor, I opened a connection directly to the 'admin' db and issued the following command: db.command({shardCollection: 'foo.bar', key: {k:1}}) I then used the mongo console and issued db.printShardingStatus(). The result: { "_id" : "foo", "partitioned" : true, "primary" : "mongo1" } foo.bar chunks: mongo1 1 { "[object Obj