Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-2986

MongoError: pool destroyed

      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

            Assignee:
            durran.jordan@mongodb.com Durran Jordan
            Reporter:
            stonemoremore@gmail.com 开 祝
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: