src/adapters/nosql/mongo.js
/**
 * Connect / prepare driver
 * @param {Function} done callback to be called after connection is established
 */
Connect / prepare driver
@param {Function} done callback to be called after connection is established
Connect / prepare driver @param { Function } done callback to be called after connection is established
connect (done){
    MongoClient.connect(this.config.db.url, (err, db) => {
      done(db);
    });
  }
connect ( done ) { MongoClient . connect ( this . config . db . url , ( err , db ) => { done ( db ) ; } ) ; }
Connect / prepare driver
 @param {Function} done callback to be called after connection is established
Connect / prepare driver @param { Function } done callback to be called after connection is established