Class ReadConcern

The MongoDB ReadConcern, which allows for control of the consistency and isolation properties of the data read from replica sets and replica set shards.

Hierarchy

  • ReadConcern

Constructors

Properties

Accessors

Methods

Constructors

  • Constructs a ReadConcern from the read concern level.

    Parameters

    Returns ReadConcern

Properties

level: string

Accessors

  • get AVAILABLE(): "available"
  • Returns "available"

  • get LINEARIZABLE(): "linearizable"
  • Returns "linearizable"

  • get MAJORITY(): "majority"
  • Returns "majority"

  • get SNAPSHOT(): "snapshot"
  • Returns "snapshot"

Methods

  • Construct a ReadConcern given an options object.

    Parameters

    Returns ReadConcern

Generated using TypeDoc