readOnly property

bool readOnly
getter/setter pair

A boolean value that, when true, indicates that the mongod or mongos is running in read-only mode.

Implementation

bool readOnly;