MongoDB\Driver\TopologyDescription::hasWritableServer
(mongodb >=1.13.0)
MongoDB\Driver\TopologyDescription::hasWritableServer — Returns whether the topology has a writable server
Description
Returns whether the topology has a writable server.
Parameters
This function has no parameters.
Return Values
Returns whether the topology has a writable server.
Errors/Exceptions
- Throws MongoDB\Driver\Exception\InvalidArgumentException on argument parsing errors.