BulkWriteFailure
public struct BulkWriteFailure : Codable
A struct to represent a write error resulting from an executed bulk write.
-
An integer value identifying the error.
Declaration
Swift
public let code: ServerErrorCode
-
A human-readable string identifying the error.
Declaration
Swift
public let codeName: String
-
A description of the error.
Declaration
Swift
public let message: String
-
The index of the request that errored.
Declaration
Swift
public let index: Int
-
A document providing more information about the write error (e.g. details pertaining to document validation).
Declaration
Swift
public let details: BSONDocument?
-
Declaration
Swift
public init(from decoder: Decoder) throws