Skip to main content
The Deno 2 Release Candidate is here
Learn more
Extremely Popular
Latest
method Database.prototype.listCollectionNames
import { Database } from "https://deno.land/x/mongo@v0.33.0/src/database.ts";

List all collection names in the database

Parameters

optional
options: { filter?: Document; authorizedCollections?: boolean; comment?: Document; } = [UNSUPPORTED]

Returns

Promise<string[]>