ReadPreference
Default Value | Data Type | Required |
---|---|---|
|
String |
No |
Description
Specify how the connector routes read operations to the members of a replica set. The following values are possible:
primary
primaryPreferred
secondary
secondaryPreferred
nearest
Note:
- The values are case-sensitive.
- This property is only used when connecting to a replica set.
Related topics
- ReplicaSet
- General Driver Configuration Options
- Building the Connection URL