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

Method hasServer

src/sdam/topology_description.ts:341–343  ·  view source on GitHub ↗

* Determines if the topology has a definition for the provided address * @internal

(address: string)

Source from the content-addressed store, hash-verified

339 * @internal
340 */
341 hasServer(address: string): boolean {
342 return this.servers.has(address);
343 }
344
345 /**
346 * Returns a JSON-serializable representation of the TopologyDescription. This is primarily

Callers 2

serverUpdateHandlerMethod · 0.80
updateServersFunction · 0.80

Calls 1

hasMethod · 0.45

Tested by

no test coverage detected