FindOneAndReplaceOptions
public struct FindOneAndReplaceOptions : FindAndModifyOptionsConvertible, DecodableOptions to use when executing a findOneAndReplace command on a MongoCollection.
- 
                  
                  If true, allows the write to opt-out of document level validation.DeclarationSwift public var bypassDocumentValidation: Bool?
- 
                  
                  Specifies a collation to use. DeclarationSwift public var collation: 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?
- 
                  
                  When ReturnDocument.After, returns the replaced or inserted document rather than the original.DeclarationSwift public var returnDocument: ReturnDocument?
- 
                  
                  Determines which document the operation modifies if the query selects multiple documents. DeclarationSwift public var sort: BSONDocument?
- 
                  
                  When true, creates a new document if no document matches the query.DeclarationSwift public var upsert: Bool?
- 
                  
                  An optional WriteConcernto use for the command.DeclarationSwift public var writeConcern: WriteConcern?
- 
                  init(bypassDocumentValidation:collation: maxTimeMS: projection: returnDocument: sort: upsert: writeConcern: ) Convenience initializer allowing any/all parameters to be omitted/optional. DeclarationSwift public init( bypassDocumentValidation: Bool? = nil, collation: BSONDocument? = nil, maxTimeMS: Int? = nil, projection: BSONDocument? = nil, returnDocument: ReturnDocument? = nil, sort: BSONDocument? = nil, upsert: Bool? = nil, writeConcern: WriteConcern? = nil )
 View on GitHub
            View on GitHub
           Install in Dash
            Install in Dash
           FindOneAndReplaceOptions Structure Reference
      FindOneAndReplaceOptions Structure Reference