DeleteOneModel
public struct DeleteOneModel : WriteModel
A model for a deleteOne
operation within a bulk write.
-
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