const monk = require('monk')
const url = 'localhost:27017/vuejs'
const db = monk(url)

console.log(db)

db.then(() => {
    console.log('Connected correctly to server')
})

// db.createCollection("counters")
// db.counters.insert({_id:"productid",sequence_value:1})
@@ -88,27 +88,8 @@
 %0D%0A%0D%0A
-console.log(db)%0D%0A%0D%0A
 db.t
@@ -157,16 +157,64 @@
 %0D%0A%7D)%0D%0A%0D%0A
+// %E9%9B%86%E5%90%88%0D%0Aconst collection = db.get('document')%0D%0A%0D%0A
 // db.cr
@@ -298,8 +298,298 @@
 alue:1%7D)
+%0D%0A%0D%0Acollection.insert(%5B%7Ba: 1%7D, %7Ba: 2%7D, %7Ba: 3%7D%5D)%0D%0A.then((docs) =%3E %7B%0D%0A  // docs contains the documents inserted with added **_id** fields%0D%0A  // Inserted 3 documents into the document collection%0D%0A%7D).catch((err) =%3E %7B%0D%0A  // An error happened while inserting%0D%0A%7D).then(%0D%0A    // () =%3E db.close()%0D%0A)

change list