title: MongoParseError: options poolsize, usenewurlparse are not supported
body: <p>I get the error &quot;MongoParseError: options poolsize, usenewurlparse are not supported&quot; when I run &quot;nodemon server&quot;.</p>
  <p>Here the code for setting up the mongodb connection:</p>
  <pre><code>import app from &quot;./server.js&quot;
  import mongodb from &quot;mongodb&quot;
  import dotenv from &quot;dotenv&quot;
  
  dotenv.config()
  const MongoClient = mongodb.MongoClient
  
  const port = process.env.PORT || 8000
  
  MongoClient.connect(
    process.env.RESTREVIEWS_DB_URI,
    {
      poolSize: 50,
      wtimeout: 2500,
      useNewUrlParse: true,
      }
    )
    .catch(err =&gt; {
     
      console.error(err.stack)
      process.exit(1)
    })
    .then(async client =&gt; {
     
      app.listen(port, () =&gt; {
        console.log(`listening on port ${port}`)
      })
    })
  </code></pre>