Reference > mongo Shell Methods > Connection Methods
Allows read operations on secondary members for the MongoDB
Also means that eventually consistent
read operations are acceptable for the current application. See
readPref() for additional
fine-grained settings for the read preference.
This example calls setSecondaryOk():
© MongoDB, Inc 2008-present. MongoDB, Mongo, and the leaf logo are registered trademarks of MongoDB, Inc.
On this page