const {MongoClient} = require('mongodb')
const uri = process.env.DATABASE_URL || ''
const client = new MongoClient(uri)
const database = client.db()
async function initMongo(config){

var col = database.collection("actualites")


//col.watch({}).on("change",(e,v)=>{


//})
}

module.exports={
    initMongo,
    database
}