title: trying to connect mongoDB to my web app but it shows following error
body: <p>Error:</p>
  <p>C:\Users\Bpc\Desktop\devcamper_api\node_modules\mongodb\lib\connection_string.js:281
  throw new error_1.MongoParseError(<code>${optionWord} ${Array.from(unsupportedOptions).join(', ')} ${isOrAre} not supported</code>);
  ^</p>
  <p>MongoParseError: options usecreateindex, usefindandmodify are not supported
  at Object.parseOptions (C:\Users\Bpc\Desktop\devcamper_api\node_modules\mongodb\lib\connection_string.js:281:15)
  at new MongoClient (C:\Users\Bpc\Desktop\devcamper_api\node_modules\mongodb\lib\mongo_client.js:62:46)
  at C:\Users\Bpc\Desktop\devcamper_api\node_modules\mongoose\lib\connection.js:781:16
  at new Promise ()
  at NativeConnection.Connection.openUri (C:\Users\Bpc\Desktop\devcamper_api\node_modules\mongoose\lib\connection.js:778:19)
  at C:\Users\Bpc\Desktop\devcamper_api\node_modules\mongoose\lib\index.js:330:10
  at C:\Users\Bpc\Desktop\devcamper_api\node_modules\mongoose\lib\helpers\promiseOrCallback.js:32:5
  at new Promise ()
  at promiseOrCallback (C:\Users\Bpc\Desktop\devcamper_api\node_modules\mongoose\lib\helpers\promiseOrCallback.js:31:10)
  at Mongoose._promiseOrCallback (C:\Users\Bpc\Desktop\devcamper_api\node_modules\mongoose\lib\index.js:1151:10)</p>
  <p>and this is my code:</p>
  <pre><code>const mongoose = require('mongoose');
  
  const connectDB = async () =&gt; {
      const conn = await mongoose.connect(process.env.MONGO_URI,
          {
              useNewUrlParser: true,
              useCreateIndex: true,
              useFindAndModify: false,
              useUnifiedTopology: true
          });
      console.log(`MongoDB Connected: ${conn.connection.host}`);
  };
  
  module.exports = connectDB;
  </code></pre>