-
Type: Task
-
Resolution: Done
-
Priority: Blocker - P1
-
Affects Version/s: 2.0.17, 2.0.18
-
Component/s: None
-
Environment:geographically distributed Replica Set-1 primary(p=2)(loc=fr),2 secondaries(p=2)(loc=ro),4 passives(priority=0)(loc=us).
-
Empty show more show less
var MongoClient = require('mongodb').MongoClient;
// Connection URL
var url = 'mongodb://replicationURL/myproject';
MongoClient.connect(url, {
db:
}, function(err, db) {
assert.equal(null, err);
console.log("Connected correctly to server");
var col = db.collection('test');
col.find().toArray(function(err,result)
);
});