title: Cannot connect by mongoDB Atlas URI using mongoose in node
body: <p>I am trying to connect my atlas cluster URI in my node project 
  Node version: 12.4.1
  mongoose: 5.2.7</p>
  
  <p>this is how my URL looks alike </p>
  
  <pre><code>mongoose.connect(mongodb+srv://usernane:pass@uri/db_name?authSource=db_name&amp;w=1, {
          useCreateIndex: true,
          keepAlive: 1,
          useNewUrlParser: true,
          useFindAndModify: false,
          useUnifiedTopology: true
      });
  </code></pre>
  
  <p>I am facing error authentication failed, What I am doing wrong any help will be appreciated.</p>