FindOneAndDeleteOptions
public struct FindOneAndDeleteOptions : FindAndModifyOptionsConvertible, DecodableOptions to use when executing a findOneAndDelete command on a MongoCollection.
- 
                  
                  Specifies a collation to use. DeclarationSwift public var collation: BSONDocument?
- 
                  
                  A document or string that specifies the index to use to support the query. Only supported in server 4.4+. DeclarationSwift public var hint: IndexHint?
- 
                  
                  Variables that can be accessed within the operation using the double dollar sign prefix in the form $$<variable_name>. This option is only available on MongoDB 5.0+.DeclarationSwift public var `let`: BSONDocument?
- 
                  
                  The maximum amount of time to allow the query to run. DeclarationSwift public var maxTimeMS: Int?
- 
                  
                  Limits the fields to return for the matching document. DeclarationSwift public var projection: BSONDocument?
- 
                  
                  Determines which document the operation modifies if the query selects multiple documents. DeclarationSwift public var sort: BSONDocument?
- 
                  
                  An optional WriteConcernto use for the command.DeclarationSwift public var writeConcern: WriteConcern?
- 
                  
                  Convenience initializer allowing any/all parameters to be omitted/optional DeclarationSwift public init( collation: BSONDocument? = nil, hint: IndexHint? = nil, `let`: BSONDocument? = nil, maxTimeMS: Int? = nil, projection: BSONDocument? = nil, sort: BSONDocument? = nil, writeConcern: WriteConcern? = nil )
 View on GitHub
            View on GitHub
           Install in Dash
            Install in Dash
           FindOneAndDeleteOptions Structure Reference
      FindOneAndDeleteOptions Structure Reference