MCPcopy
hub / github.com/mongodb/node-mongodb-native / topologyConnect

Method topologyConnect

src/mongo_client.ts:678–685  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

676 }
677
678 const topologyConnect = async () => {
679 try {
680 await this.topology?.connect(options);
681 } catch (error) {
682 this.topology?.close();
683 throw error;
684 }
685 };
686
687 if (this.autoEncrypter) {
688 await this.autoEncrypter?.init();

Callers

nothing calls this directly

Calls 2

connectMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected