BulkWriteOptions
public struct BulkWriteOptions : Codable
Options to use when performing a bulk write operation on a MongoCollection.
-
If
true, allows the write to opt-out of document level validation.Declaration
Swift
public var bypassDocumentValidation: Bool? -
If
true(the default), operations will be executed serially in order and a write error will abort execution of the entire bulk write. Iffalse, operations may execute in an arbitrary order and execution will not stop after encountering a write error (i.e. multiple errors may be reported after all operations have been attempted).Declaration
Swift
public var ordered: Bool -
An optional WriteConcern to use for the bulk write.
Declaration
Swift
public var writeConcern: WriteConcern? -
Convenience initializer allowing any/all parameters to be omitted or optional
Declaration
Swift
public init(bypassDocumentValidation: Bool? = nil, ordered: Bool? = nil, writeConcern: WriteConcern? = nil) -
Declaration
Swift
public init(from decoder: Decoder) throws
View on GitHub
Install in Dash
BulkWriteOptions Structure Reference