UpdateManyStatement class

Constructors

UpdateManyStatement(Map<String, dynamic> q, Object u, {bool? upsert, CollationOptions? collation, List? arrayFilters, String? hint, Map<String, Object>? hintDocument})

Properties

arrayFilters List?
An array of filter documents that determine which array elements to modify for an update operation on an array field.
getter/setter pairinherited
collation CollationOptions?
Specifies the collation to use for the operation.
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
hint String?
A document or string that specifies the index to use to support the query predicate.
getter/setter pairinherited
hintDocument Map<String, Object>?
getter/setter pairinherited
multi bool
If true, updates all documents that meet the query criteria. If false, limit the update to one document that meet the query criteria. Defaults to false.
getter/setter pairinherited
q Map<String, dynamic>
The query that matches documents to update. Use the same query selectors as used in the find() method.
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
u Object
The modifications to apply.
getter/setter pairinherited
upsert bool
If true, perform an insert if no documents match the query. If both upsert and multi are true and no documents match the query, the update operation inserts only a single document.
getter/setter pairinherited

Methods

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

Operators

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