-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: 3.2.2
-
Component/s: MongoDB 3.2
-
Empty show more show less
try
{ await client.connect(); const database = client.db('test'); const collection = database.collection('test'); // Query for a movie that has the title 'Back to the Future' const movie = await collection.findOne(); console.log(movie); }finally
{ // Ensures that the client will close when you finish/error await client.close(); }await client.close();
console:
{ '222': 88, _id: 5ff7edeeabd6ef2c3e327596 }the options [servers] is not supported
the options [caseTranslate] is not supported
the options [dbName] is not supported
the options [credentials] is not supported
2021-01-08 14:43:03,997 ERROR 62136 Job#16100881839563352691854827002 C:\Users\zhuowowo\Desktop\工作\代码\node\202101Alarm\app\schedule\TimingAlarm.js execute failed, used 38ms. MongoError: pool destroyed