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

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 */
1078export 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

Callers 1

buildCommandFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected