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

Method supportsOpMsg

src/cmap/connection.ts:286–293  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

284 }
285
286 private get supportsOpMsg(): boolean {
287 return (
288 this.description != null &&
289 // TODO(NODE-6672,NODE-6287): This guard is primarily for maxWireVersion = 0
290 maxWireVersion(this) >= 6 &&
291 !this.description.__nodejs_mock_server__
292 );
293 }
294
295 private get shouldEmitAndLogCommand(): boolean {
296 return (

Callers

nothing calls this directly

Calls 1

maxWireVersionFunction · 0.90

Tested by

no test coverage detected