Mongo.isCausalConsistency()

Definition

  • Mongo.isCausalConsistency()

New in version 3.6.

Returns a boolean that indicates whether causal consistency is enabled on the connection object.

  1. var conn = Mongo("localhost:27017");
  2. conn.isCausalConsistency()

Example

The following mongo shell operation determines if causalconsistency is enabled on the Mongo connection objectassociated with the mongo shell’s global db variable:

  1. db.getMongo().isCausalConsistency();

See also