(mongodb >=1.13.0)
MongoDB\Driver\TopologyDescription::hasWritableServer — Returns whether the topology has a writable server
Returns whether the topology has a writable server.
This function has no parameters.
Returns whether the topology has a writable server.