(operationName)
| 562 | } |
| 563 | |
| 564 | function 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 | |
| 571 | function normalizeReadPreference(mode) { |
| 572 | return mode.charAt(0).toLowerCase() + mode.substr(1); |