Watch keynotes and sessions from MongoDB.live, our virtual developer conference.

NodeJs driver missing cursor.readConcern() method

Hello,
using nodeJS driver and found that it is missing cursor.readConcern() method.
which is described here:
https://docs.mongodb.com/manual/reference/method/cursor.readConcern/index.html

is it another correct way to specify readConcern for queries?

Hi @Edgar_Buchvalov

I advise my developers to honor this from the provided mongouri option.

https://docs.mongodb.com/manual/reference/connection-string/#readconcern-options

I am not particularly experienced with the node driver but you can see the MongoClient class has readConcern option available.

https://mongodb.github.io/node-mongodb-native/3.5/api/MongoClient.html