Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/mikro-orm/mikro-orm
/ close
Method
close
packages/mongodb/src/MongoConnection.ts:105–109 ·
view source on GitHub ↗
(force?: boolean)
Source
from the content-addressed store, hash-verified
103
}
104
105
override
async
close(force?: boolean): Promise<void> {
106
await
this.#client?.close(force);
107
this.connected = false;
108
this.#client = undefined;
109
}
110
111
async
isConnected(): Promise<boolean> {
112
try {
Callers
nothing calls this directly
Calls
1
close
Method · 0.65
Tested by
no test coverage detected