Why does my query not working with more than 100 documents in collection?
db.collection('allowedmacs').find().toArray(function(err, docs) {
console.log(docs);
}
err says this:
name: 'MongoError',
message: 'connection destroyed, not possible to instantiate cursor'
If documents <100 all works fine.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…