We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fab6697 commit 0bbcad3Copy full SHA for 0bbcad3
src/operations/aggregate.ts
@@ -65,7 +65,7 @@ export class AggregateOperation<T = Document> extends CommandOperation<Aggregate
65
this.readPreference = ReadPreference.primary;
66
}
67
68
- if (options?.explain && this.writeConcern) {
+ if (this.explain && this.writeConcern) {
69
throw new MongoError('"explain" cannot be used on an aggregate call with writeConcern');
70
71
0 commit comments