PHP - Manual: MongoDB\Driver\TopologyDescription::hasWritableServer
2025-02-27
(mongodb >=1.13.0)
MongoDB\Driver\TopologyDescription::hasWritableServer — Returns whether the topology has a writable server
Returns whether the topology has a writable server.
此函数没有参数。
Returns whether the topology has a writable server.
官方地址:https://www.php.net/manual/en/mongodb-driver-topologydescription.haswritableserver.php