- Reference >
mongo
Shell Methods >- Replication Methods >
- rs.secondaryOk()
rs.secondaryOk()¶
On this page
Definition¶
-
rs.
secondaryOk
()¶ Allows read operations on secondary members for the MongoDB connection.
Also means that eventually consistent read operations are acceptable for the current application. See
readPref()
for additional fine-grained settings for the read preference.
Example¶
This example calls rs.secondaryOk()
: