DeleteOneModel
public struct DeleteOneModel : WriteModel, Decodable
A model for a deleteOne
operation within a bulk write.
-
The collation to use.
Declaration
Swift
public let collation: Document?
-
Adds the
deleteOne
operation to a bulk write.Throws
UserError.invalidArgumentError
if the options form an invalid combination.EncodingError
if an error occurs while encoding the options to BSON.
Declaration
Swift
public func addToBulkWrite(bulk: BulkWriteOperation, index: Int) throws