UpdateModelOptions
public struct UpdateModelOptions : Codable
Options to use with a WriteModel.updateOne
or WriteModel.updateMany
.
-
A set of filters specifying to which array elements an update should apply.
Declaration
Swift
public var arrayFilters: [Document]?
-
The collation to use.
Declaration
Swift
public var collation: Document?
-
When
true
, creates a new document if no document matches the query.Declaration
Swift
public var upsert: Bool?
-
Initializer allowing any/all options to be omitted or optional.
Declaration