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
326 B
14 lines
326 B
var assert = require('assert');
|
|
var mongojs = require('../index');
|
|
var db = mongojs('test', ['b.c']);
|
|
|
|
db.b.c.remove(function() {
|
|
db.b.c.save({hello: "world"}, function(err, rs) {
|
|
db.b.c.find(function(err, docs) {
|
|
assert.equal(docs[0].hello, "world");
|
|
db.b.c.remove(function() {
|
|
db.close();
|
|
});
|
|
});
|
|
});
|
|
});
|
|
|