renameCollection does not work in Document Layer

Document layer document says renameCollection should work , I tried but does not seems to work Is there is way to do this in document layer

> db.adminCommand( { renameCollection: "vishaltest.stores", to : "vishaltest.stores123"})

{

"errmsg" : "no such cmd: renamecollection",

"bad cmd" : "{ renameCollection: "vishaltest.stores", to: "vishaltest.stores123" }",

"ok" : 0

}

> use vishaltest

switched to db vishaltest

> db.stores.renameCollection("stores1234")

{

"errmsg" : "no such cmd: renamecollection",

"bad cmd" : "{ renameCollection: "vishaltest.stores", to: "vishaltest.stores1234", dropTarget: false }",

"ok" : 0

}

>

Thanks for reporting the issue. I have created an issue for this.

Thanks Bhaskar,

Any idea when DB auth will be enable in document layer ? This is the most crucial thing before we proceed with any implementation.