ReplaceOneModelOptions
public struct ReplaceOneModelOptions : Codable
Options to use with a WriteModel.replaceOne
.
-
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
Swift
public init(collation: Document? = nil, upsert: Bool? = nil)