Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/mongo/src/client.ts>MongoClient

MongoDB driver for Deno
Extremely Popular
Go to Latest
class MongoClient
import { MongoClient } from "https://deno.land/x/mongo@v0.31.1/src/client.ts";

Properties

readonly
buildInfo

Methods

connect(options: ConnectOptions | string): Promise<Database>
database(name?): Database
listDatabases(options?: { filter?: Document; nameOnly?: boolean; authorizedCollections?: boolean; comment?: Document; }): Promise<ListDatabaseInfo[]>
runCommand<T = any>(db: string, body: Document): Promise<T>