(No version information available, might only be in Git)
MongoDB\Driver\Manager::selectServer — Preselect MongoDB node
$readPreference
)
Preselect a MongoDB node based on provided readPreference
. This can be useful to gurantee a command runs on a specific server when operating in a mixed version cluster.
readPreference
Optionally, a MongoDB\Driver\ReadPreference to route the command to. If none given, defaults to the Read Preferences set by the MongoDB Connection URI.
Returns an instance of MongoDB\Driver\Server ready for action.