FindOneAndDeleteOptions
public struct FindOneAndDeleteOptions : FindAndModifyOptionsConvertible, Decodable
Options to use when executing a findOneAndDelete command on a MongoCollection.
-
Specifies a collation to use.
Declaration
Swift
public var collation: BSONDocument? -
A document or string that specifies the index to use to support the query. Only supported in server 4.4+.
Declaration
Swift
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+.Declaration
Swift
public var `let`: BSONDocument? -
The maximum amount of time to allow the query to run.
Declaration
Swift
public var maxTimeMS: Int? -
Limits the fields to return for the matching document.
Declaration
Swift
public var projection: BSONDocument? -
Determines which document the operation modifies if the query selects multiple documents.
Declaration
Swift
public var sort: BSONDocument? -
An optional
WriteConcernto use for the command.Declaration
Swift
public var writeConcern: WriteConcern? -
Convenience initializer allowing any/all parameters to be omitted/optional
Declaration
Swift
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
Install in Dash
FindOneAndDeleteOptions Structure Reference