title: Connecting to MongoDB Atlas with TypeOrm?
body: <p>I am trying to connect to Mongodb Atlas with TypeOrm.</p>
  
  <p>Here is my <code>ormconfig.json</code> :</p>
  
  <pre><code>{
    "type": "mongodb",
    "host": "cluster0-****.mongodb.net",
    "port": 27017,
    "username": "testUser",
    "password": "******",
    "database": "test",
    "useNewUrlParser": true,
    "synchronize": true,
    "logging": true,
    "entities": ["src/entity/*.*"]
  }
  </code></pre>
  
  <p>And then when I try to <code>createConnection()</code> is get this error :
  <code>(node:10392) UnhandledPromiseRejectionWarning: MongoNetworkError: failed to connect to server [cluster0-****.mongodb.net:27017] on first connect [MongoNetworkError: getaddrinfo ENOTFOUND cluster0-****.mongodb.net cluster0-****.mongodb.net:27017]</code></p>
  
  <p>Actually I can not find any information on how to do this.</p>
  
  <p>Is my port right ? And if it is not where can I found it ? Where can I find my database name on Atlas ?</p>