Docs Menu

Docs HomeMongoDB Manual

Mongo.isCausalConsistency()

On this page

  • Definition
  • Example
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()

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();

Tip

See also:

←  Mongo.getSecondaryOk()Mongo.setCausalConsistency() →

On this page

Give Feedback
© 2022 MongoDB, Inc.

About

  • Careers
  • Investor Relations
  • Legal Notices
  • Privacy Notices
  • Security Information
  • Trust Center
© 2022 MongoDB, Inc.