W

public enum W : Codable, Equatable

An option to request acknowledgement that the write operation has propagated to specified mongod instances.

  • Specifies the number of nodes that should acknowledge the write. MUST be greater than or equal to 0.

    Declaration

    Swift

    case number(Int32)
  • Indicates a tag for nodes that should acknowledge the write.

    Declaration

    Swift

    case tag(String)
  • Specifies that a majority of nodes should acknowledge the write.

    Declaration

    Swift

    case majority
  • Declaration

    Swift

    public init(from decoder: Decoder) throws
  • Declaration

    Swift

    public func encode(to encoder: Encoder) throws