[data] updated 0.0.1 -> 0.0.2
This commit is contained in:
1 parent
e9cb52d20b
commit
e9ac51d675
7 files changed
+152
-81
No files matched your search
@@ -0,0 +1,18 @@
|
||||
require('babel-polyfill')
|
||||
|
||||
const Data = require('../lib/Data').default
|
||||
//const Data = require('../src/Data')
|
||||
const MongoClient = require('mongodb').MongoClient
|
||||
|
||||
MongoClient
|
||||
.connect('mongodb://localhost:27017/hudozka')
|
||||
.then(function (db) {
|
||||
const store = db.collection('documents')
|
||||
const data = new Data(store)
|
||||
|
||||
data.find({})
|
||||
.then(function(data){
|
||||
console.log('data >')
|
||||
console.log(data)
|
||||
})
|
||||
})
|
||||
Reference in new issue
Block a user