MCPcopy Create free account
hub / github.com/mikro-orm/mikro-orm / connect

Method connect

packages/mongodb/src/MongoConnection.ts:67–74  ·  view source on GitHub ↗
(options?: { skipOnConnect?: boolean })

Source from the content-addressed store, hash-verified

65 }
66
67 async connect(options?: { skipOnConnect?: boolean }): Promise<void> {
68 this.getClient();
69 this.connected = true;
70
71 if (options?.skipOnConnect !== true) {
72 await this.onConnect();
73 }
74 }
75
76 createClient(): void {
77 let driverOptions = this.options.driverOptions ?? this.config.get('driverOptions');

Callers

nothing calls this directly

Calls 1

getClientMethod · 0.95

Tested by

no test coverage detected