* Check if a secondary can be used (because the read preference is *not* set to primary)
()
| 192 | * Check if a secondary can be used (because the read preference is *not* set to primary) |
| 193 | */ |
| 194 | get secondaryOk(): boolean { |
| 195 | return this.s.readPreference?.preference !== 'primary' || false; |
| 196 | } |
| 197 | |
| 198 | get readConcern(): ReadConcern | undefined { |
| 199 | return this.s.readConcern; |
no outgoing calls
no test coverage detected