Developer data platform
Enterprise software and support
Free software used by millions
Build faster
By Industry
By Use Case
Developer Data Platform
Innovate fast at scale with a unified developer experience
White Papers & Presentations
Webinars, white papers, datasheets and more
Community
Education
About
Services
Partnerships
mongo
Docs Home → MongoDB Manual
On this page
Mongo.getSecondaryOk()
Indicates whether the MongoDB connection allows read operations on secondary members.
True
false
This example calls getSecondaryOk():
getSecondaryOk()
db.getMongo().getSecondaryOk()
Mongo.setSecondaryOk()
rs.secondaryOk()