-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
Empty show more show less
Here it says startSession takes a second parameter (callback):
https://github.com/mongodb/node-mongodb-native/blob/934a43a90141fbacebd4bcdd9151a4f6a8a8bc57/lib/mongo_client.js#L498
It also says startSession will return a Promise:
https://github.com/mongodb/node-mongodb-native/blob/934a43a90141fbacebd4bcdd9151a4f6a8a8bc57/lib/mongo_client.js#L499
However startSession actually returns a ClientSession. I'm really confused how should I use startSession...