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

Function translateOperationName

test/tools/spec-runner/index.js:564–569  ·  view source on GitHub ↗
(operationName)

Source from the content-addressed store, hash-verified

562}
563
564function translateOperationName(operationName) {
565 if (operationName === 'runCommand') return 'command';
566 if (operationName === 'listDatabaseNames') return 'listDatabases';
567 if (operationName === 'listCollectionNames') return 'listCollections';
568 return operationName;
569}
570
571function normalizeReadPreference(mode) {
572 return mode.charAt(0).toLowerCase() + mode.substr(1);

Callers 1

testOperationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected