MongoDB\Driver\TopologyDescription::hasWritableServer

Returns whether the topology has a writable server

Description

final public bool MongoDB\Driver\TopologyDescription::hasWritableServer()

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.