(options: OperationOptions & Abortable = {})
| 77 | static aspects?: Set<symbol>; |
| 78 | |
| 79 | constructor(options: OperationOptions & Abortable = {}) { |
| 80 | this.readPreference = this.hasAspect(Aspect.WRITE_OPERATION) |
| 81 | ? ReadPreference.primary |
| 82 | : (ReadPreference.fromOptions(options) ?? ReadPreference.primary); |
| 83 | |
| 84 | // Pull the BSON serialize options from the already-resolved options |
| 85 | this.bsonOptions = resolveBSONOptions(options); |
| 86 | |
| 87 | this._session = options.session != null ? options.session : undefined; |
| 88 | |
| 89 | this.options = options; |
| 90 | this.bypassPinningCheck = !!options.bypassPinningCheck; |
| 91 | |
| 92 | this.attemptsMade = 0; |
| 93 | } |
| 94 | |
| 95 | /** Must match the first key of the command object sent to the server. |
| 96 | Command name should be stateless (should not use 'this' keyword) */ |
nothing calls this directly
no test coverage detected