rename Collection
Rename the collection with oldCollectionName to the newCollectionName.
Parameters
the namespace the collection will be renamed to
Throws
if you provide a newCollectionName that is the name of an existing collection, or if the oldCollectionName is the name of a collection that doesn't exist
Rename the collection with oldCollectionName to the newCollectionName.
Parameters
the name the collection will be renamed to
the options for renaming a collection
Throws
if you provide a newCollectionName that is the name of an existing collection and dropTarget is false, or if the oldCollectionName is the name of a collection that doesn't exist
Rename the collection with oldCollectionName to the newCollectionName.
Since
3.6
Parameters
the client session with which to associate this operation
the namespace the collection will be renamed to
Throws
if you provide a newCollectionName that is the name of an existing collection, or if the oldCollectionName is the name of a collection that doesn't exist
Rename the collection with oldCollectionName to the newCollectionName.
Since
3.6
Parameters
the client session with which to associate this operation
the name the collection will be renamed to
the options for renaming a collection
Throws
if you provide a newCollectionName that is the name of an existing collection and dropTarget is false, or if the oldCollectionName is the name of a collection that doesn't exist