DeleteManyModel
public struct DeleteManyModel : WriteModel
A model for a deleteMany
operation within a bulk write.
-
Adds the
deleteMany
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