options property

Map<String, Object> options

Implementation

Map<String, Object> get options => <String, Object>{
      if (batchSize != null) keyBatchSize: batchSize!,
      if (singleBatch) keySingleBatch: singleBatch,
      if (comment != null) keyComment: comment!,
      if (maxTimeMS != null) keyMaxTimeMS: maxTimeMS!,
      if (readConcern != null) keyReadConcern: readConcern!.toMap(),
      if (max != null) keyMax: max!,
      if (min != null) keyMin: min!,
      if (returnKey) keyReturnKey: returnKey,
      if (showRecordId) keyShowRecordId: showRecordId,
      if (tailable) keyTailable: tailable,
      // ignore: deprecated_member_use_from_same_package
      if (oplogReplay) keyOplogReplay: oplogReplay,
      if (noCursorTimeout) keyNoCursorTimeout: noCursorTimeout,
      if (awaitData) keyAwaitData: awaitData,
      if (allowPartialResult) keyAllowPartialResult: allowPartialResult,
      if (collation != null) keyCollation: collation!.options,
      if (allowDiskUse) keyAllowDiskUse: allowDiskUse,
    };