Navigation
This version of the documentation is archived and no longer supported.

Mongo.getSecondaryOk()

On this page

Definition

Mongo.getSecondaryOk()

Indicates whether the MongoDB connection allows read operations on secondary members.

Returns:True if the MongoDB connection allows read operations on secondary members. Otherwise, returns false.

Example

This example calls getSecondaryOk():

db.getMongo().getSecondaryOk()