• Parameters

    • databaseName: string

      Database name that you want to get the collections of.

    • suppressAuth: boolean

      An object containing options to use when processing this operation.

    • Optionalfilter: Document

      MongoDB native filtering options. Read More.

    • OptionallistOptions: ListCollectionsOptions

      MongoDB native listCollections options. Read More.

    Returns Promise<CollectionInfo[]>

    Fulfilled - Array of CollectionInfo.

    Lists collections inside of a selected database. (User must have listCollections permission inside MongoDB dashboard).