php8.5
Home/ Manual/ driver / topologydescription/ MongoDB\Driver\TopologyDescription::hasWritableServer

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.

Errors/Exceptions

Source: reference/mongodb/mongodb/driver/topologydescription/haswritableserver.xml · from the official PHP manual (php/doc-en)