MongoDB\Driver\TopologyDescription::hasWritableServer
PHP function
Edit on GitHub ✎
(mongodb >=1.13.0)
Returns whether the topology has a writable server
Description
MongoDB\Driver\TopologyDescription::hasWritableServer(): bool
Returns whether the topology has a writable server.
Parameters Parameters
Return Values
Returns whether the topology has a writable server.