TopologyType

public enum TopologyType : String

The possible types for a topology.

  • A single mongod server.

    Declaration

    Swift

    case single = "Single"
  • A replica set with no primary.

    Declaration

    Swift

    case replicaSetNoPrimary = "ReplicaSetNoPrimary"
  • A replica set with a primary.

    Declaration

    Swift

    case replicaSetWithPrimary = "ReplicaSetWithPrimary"
  • Sharded topology.

    Declaration

    Swift

    case sharded = "Sharded"
  • A topology whose type is not yet known.

    Declaration

    Swift

    case unknown = "Unknown"