WriteModel
public enum WriteModel<CollectionType> where CollectionType : Decodable, CollectionType : EncodableEnum encompassing operations that can be run as part of a bulkWrite.
- 
                  
                  A deleteOne. Parameters:- A BSONDocumentrepresenting the match criteria.
- options: Optional- DeleteModelOptions.
 DeclarationSwift case deleteOne(BSONDocument, options: DeleteModelOptions? = nil)
- A 
- 
                  
                  A deleteMany. Parameters:- A BSONDocumentrepresenting the match criteria.
- options: Optional- DeleteModelOptions.
 DeclarationSwift case deleteMany(BSONDocument, options: DeleteModelOptions? = nil)
- A 
- 
                  
                  An insertOne. Parameters:- A Tto insert.
 DeclarationSwift case insertOne(CollectionType)
- A 
- 
                  
                  A replaceOne. Parameters:- filter: A- BSONDocumentrepresenting the match criteria.
- replacement: A- Tto use as the replacement value.
- options: Optional- ReplaceOneModelOptions.
 DeclarationSwift case replaceOne(filter: BSONDocument, replacement: CollectionType, options: ReplaceOneModelOptions? = nil)
- 
                  
                  An updateOne. Parameters:- filter: A- BSONDocumentrepresenting the match criteria.
- update: A- BSONDocumentcontaining update operators.
- options: Optional- UpdateModelOptions.
 DeclarationSwift case updateOne(filter: BSONDocument, update: BSONDocument, options: UpdateModelOptions? = nil)
- 
                  
                  An updateMany. Parameters:- filter: A- BSONDocumentrepresenting the match criteria.
- update: A- BSONDocumentcontaining update operators.
- options: Optional- UpdateModelOptions.
 DeclarationSwift case updateMany(filter: BSONDocument, update: BSONDocument, options: UpdateModelOptions? = nil)
 View on GitHub
            View on GitHub
           Install in Dash
            Install in Dash
           WriteModel Enumeration Reference
      WriteModel Enumeration Reference