AggregateOptions constructor

AggregateOptions({
  1. bool allowDiskUse = false,
  2. int? maxTimeMS,
  3. bool bypassDocumentValidation = false,
  4. ReadConcern? readConcern,
  5. CollationOptions? collation,
  6. String? comment,
  7. WriteConcern? writeConcern,
})

Implementation

AggregateOptions(
    {this.allowDiskUse = false,
    this.maxTimeMS,
    this.bypassDocumentValidation = false,
    this.readConcern,
    this.collation,
    this.comment,
    this.writeConcern}) {
  if (maxTimeMS != null && maxTimeMS! < 1) {
    throw MongoDartError('MaxTimeMS parameter must be a positive value');
  }
}