FindOptions constructor
FindOptions({
- int? batchSize,
- bool singleBatch = false,
- String? comment,
- int? maxTimeMS,
- ReadConcern? readConcern,
- Map<
String, Object> ? max, - Map<
String, Object> ? min, - bool returnKey = false,
- bool showRecordId = false,
- bool tailable = false,
- bool oplogReplay = false,
- bool noCursorTimeout = false,
- bool awaitData = false,
- bool allowPartialResult = false,
- CollationOptions? collation,
- bool allowDiskUse = false,
Implementation
FindOptions(
{this.batchSize,
this.singleBatch = false,
this.comment,
this.maxTimeMS,
this.readConcern,
this.max,
this.min,
this.returnKey = false,
this.showRecordId = false,
this.tailable = false,
this.oplogReplay = false,
this.noCursorTimeout = false,
this.awaitData = false,
this.allowPartialResult = false,
this.collation,
this.allowDiskUse = false}) {
if (batchSize != null && batchSize! < 0) {
throw MongoDartError('Batch size parameter must be a non negative value');
}
if (maxTimeMS != null && maxTimeMS! < 1) {
throw MongoDartError('MaxTimeMS parameter must be a positive value');
}
}