• Parameters

    • collectionId: string

      CollectionID (database/collection).

    • OptionalsuppressAuth: boolean

      A boolean value to bypass permissions.

    • Optionaloptions: CreateCollectionOptions

      Native options of MongoDB driver when creating a collection. Read Here

    Returns Promise<void>

    Creates a new collection inside of a selected database. (User must have createCollection permission inside MongoDB dashboard).