import { Database } from "https://deno.land/x/model@v1.2/dependencies/mongo.ts";
Methods
collection<T = Document>(name: string): Collection<T>
listCollectionNames(options?: { filter?: Document; authorizedCollections?: boolean; comment?: Document; }): Promise<string[]>
listCollections(options?: { filter?: Document; nameOnly?: boolean; authorizedCollections?: boolean; comment?: Document; }): CommandCursor<ListCollectionsResult>