WeivData API Reference | ExWeiv Apps
    Preparing search index...

    Function renameCollection

    • Parameters

      • collectionId: string

        CollectionID (database/collection).

      • newCollectionName: string

        New name of collection.

      • Optionaloptions: WeivDataOptions

        An object containing options to use when processing this operation.

      • OptionalrenameOptions: RenameOptions

        Native options of MongoDB driver when renaming a collection. Read More.

      Returns Promise<void>

      Renames a collection inside of a selected database. (User must have renameCollection permission inside MongoDB dashboard).