Constructs a ReadConcern from the read concern level.
Static
AVAILABLEStatic
LINEARIZABLEStatic
MAJORITYStatic
SNAPSHOTStatic
fromConstruct a ReadConcern given an options object.
Optional
options: { The options object from which to extract the write concern.
Optional
level?: ReadConcernLevelOptional
read
The MongoDB ReadConcern, which allows for control of the consistency and isolation properties of the data read from replica sets and replica set shards.
See
https://www.mongodb.com/docs/manual/reference/read-concern/index.html