Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

MongoDBService

import { MongoDBService } from "https://raw.githubusercontent.com/mandarineorg/mandarinets/master/mod.ts";
class MongoDBService {
constructor(connectionUrl: string);
private client: MongoClient;
 
public bson();
public close();
public getCollection<T = any>(db: Database | string, collectionName: string): Collection<T> | undefined;
public getDatabase(name: string): Database;
public async listDatabases(): Promise<Array<ListDatabaseInfo>>;
}

§Constructors

§
new MongoDBService(connectionUrl: string)
[src]

§Properties

§
client: MongoClient
[src]

§Methods

§
bson()
[src]
§
close()
[src]
§
getCollection<T = any>(db: Database | string, collectionName: string): Collection<T> | undefined
[src]
§
getDatabase(name: string): Database
[src]
§
listDatabases(): Promise<Array<ListDatabaseInfo>>
[src]