FindOneAndDeleteOptions
public struct FindOneAndDeleteOptions : FindAndModifyOptionsConvertible
Options to use when executing a findOneAndDelete
command on a MongoCollection
.
-
Specifies a collation to use.
Declaration
Swift
public let collation: Document?
-
The maximum amount of time to allow the query to run.
Declaration
Swift
public let maxTimeMS: Int64?
-
Limits the fields to return for the matching document.
Declaration
Swift
public let projection: Document?
-
Determines which document the operation modifies if the query selects multiple documents.
Declaration
Swift
public let sort: Document?
-
An optional
WriteConcern
to use for the command.Declaration
Swift
public let writeConcern: WriteConcern?
-
Convenience initializer allowing any/all parameters to be omitted/optional
Declaration
Swift
public init(collation: Document? = nil, maxTimeMS: Int64? = nil, projection: Document? = nil, sort: Document? = nil, writeConcern: WriteConcern? = nil)