You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

14 lines
322 B

var insert = require('./insert')
insert('find and select', [{
hello: 'world',
another: 'value'
}], function (db, t, done) {
db.a.find({}, {another: 1}, function (err, docs) {
t.error(err)
t.equal(docs.length, 1)
t.equal(docs[0].hello, undefined)
t.equal(docs[0].another, 'value')
done()
})
})