代码:
var Db = require('mongodb').Db,
Server = require('mongodb').Server,
Client = new Db('test', new Server('127.0.0.1', 52235, {}))
在功能:...
Client.open(function(err, pClient) {
Client.collection('test_insert', function(err, collection){
collection.find().toArray(function(err, results) {
console.log(results);
});
});
// etc.
});
这显示错误:无法读取未定义的属性 'arbiterOnly' 你能帮我吗?