ReadPreference

Default Value Data Type Required

primary

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