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 ffd8cdd commit 6bfa94aCopy full SHA for 6bfa94a
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