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

Function maybeSession

test/tools/spec-runner/index.js:620–627  ·  view source on GitHub ↗
(operation, context)

Source from the content-addressed store, hash-verified

618const ADMIN_COMMANDS = new Set(['listDatabases']);
619
620function maybeSession(operation, context) {
621 return (
622 operation &&
623 operation.arguments &&
624 operation.arguments.session &&
625 context[operation.arguments.session]
626 );
627}
628
629function withoutCommandMonitoring(client, fn) {
630 const listeners = client.rawListeners('commandStarted');

Callers 1

index.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected