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