WriteError

public struct WriteError

A single error

  • The failed index in the update operation

    Declaration

    Swift

    public let index: Int
  • The error code

    Declaration

    Swift

    public let code: Int
  • The error message

    Declaration

    Swift

    public let message: String
  • The query that failed

    Declaration

    Swift

    public let affectedQuery: Query
  • The update document that failed

    Declaration

    Swift

    public let affectedUpdate: Document
  • Whether this query was upserting

    Declaration

    Swift

    public let upserting: Bool
  • Whether this query was updating multiple Documents

    Declaration

    Swift

    public let multiple: Bool