DeleteOptions
public struct DeleteOptions : Codable, BulkWriteOptionsConvertible
Options to use when executing a delete
command on a MongoCollection
.
-
Specifies a collation.
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?
-
An optional
WriteConcern
to use for the command.Declaration
Swift
public var writeConcern: WriteConcern?
-
Convenience initializer allowing collation to be omitted or optional
Declaration
Swift
public init( collation: BSONDocument? = nil, hint: IndexHint? = nil, writeConcern: WriteConcern? = nil )