hosts property
*** Replica Sets
hello contains these fields when returned by a member of a replica set:
An array of strings in the format of "hostname
:port
" that lists all
members of the replica set that are neither hidden, passive, nor arbiters.
Drivers use this array and the hello.passives to determine which
members to read from.
Implementation
/// An array of strings in the format of "[hostname]:[port]" that lists all
/// members of the replica set that are neither hidden, passive, nor arbiters.
/// Drivers use this array and the hello.passives to determine which
/// members to read from.
List<String>? hosts;