Constructors

Methods

  • Parameters

    • collectionName: string
    • index: IndexSpecification
    • Optionaloptions: Omit<CreateIndexesOptions, "session">

    Returns void

  • Parameters

    • callback: (db: Db, client: ClientSession) => Promise<void>

    Returns void

  • Drop a collection. This operation will be done last in the migration. It cannot be run in a transaction, so we recommend doing it in a separate migration file.

    Parameters

    • collectionName: string

    Returns void

  • Parameters

    • collectionName: string
    • indexName: string
    • Optionaloptions: Omit<CommandOperationOptions, "session">

    Returns void