title: How can I use async-await with MongoClient
body: <p>When I run this (using node v7.5.0 with --harmony):</p>
  
  <pre><code>var MongoClient = require('mongodb').MongoClient,
  var url = "mongodb://localhost:27017/myDB";
  
  var test = await MongoClient.connect(url);
  module.exports = test;
  </code></pre>
  
  <p>I get this error:</p>
  
  <pre><code>var test = await MongoClient.connect(url);
               ^^^^^^^^^^^
  SyntaxError: Unexpected identifier
  </code></pre>
  
  <p>MongoClient.connect(url) does return a promise</p>
  
  <p>What I ultimately want to achieve is to create a node module that will connect to a mondoDB and will be usable as in the following example:</p>
  
  <pre><code> var db = require('../utils/db');  //&lt;-- this is what I want to create above
   col = db.collection('myCollection');
  
   module.exports.create = async fuction(data) {
     return await col.insertOne(data);
   }
  </code></pre>
  
  <p>Any suggestions?</p>