Mongo.isCausalConsistency()
On this page
This version of the documentation is archived and no longer
supported. View the current documentation to learn how to
upgrade your version of MongoDB.
Definition
Mongo.isCausalConsistency()
New in version 3.6.
Returns a boolean that indicates whether causal consistency is enabled on the connection object.
var conn = Mongo("localhost:27017"); conn.isCausalConsistency()
Example
The following mongo
shell operation determines if causal
consistency is enabled on the Mongo()
connection object
associated with the mongo
shell's global db
variable:
db.getMongo().isCausalConsistency();