Function
commandSupportsReadConcern
src/utils.ts:1078–1083
· src/utils.ts::commandSupportsReadConcern
(command: Document)
Source from the content-addressed store, hash-verified
| 1076 | * @see https:class="cm">//github.com/mongodb/specifications/blob/master/source/read-write-concern/read-write-concern.md#read-concern |
| 1077 | */ |
| 1078 | export function commandSupportsReadConcern(command: Document): boolean { |
| 1079 | if (command.aggregate || command.count || command.distinct || command.find || command.geoNear) { |
| 1080 | return true; |
| 1081 | } |
| 1082 | return false; |
| 1083 | } |
| 1084 | |
| 1085 | /** |
| 1086 | * @internal |
Tested by
no test coverage detected