FindAndModifyOptions class

Constructors

FindAndModifyOptions({bool? bypassDocumentValidation, WriteConcern? writeConcern, int? maxTimeMS, CollationOptions? collation, String? comment})

Properties

bypassDocumentValidation ↔ bool
Enables findAndModify to bypass document validation during the operation. This lets you update documents that do not meet the validation requirements.
getter/setter pair
collation → CollationOptions?
Specifies the collation to use for the operation.
final
comment → String?
A user-provided comment to attach to this command. Once set, this comment appears alongside records of this command in the following locations:
final
hashCode → int
The hash code for this object.
no setterinherited
maxTimeMS → int?
Specifies a time limit in milliseconds for processing the operation.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
writeConcern ↔ WriteConcern?
A document expressing the write concern. Omit to use the default write concern.
getter/setter pair

Methods

getOptions(Db db) → Map<String, Object>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited