0
我想查询的集合,大约有200万项:猫鼬解析错误
var tagSchema = mongoose.Schema({
tag: String,
book: mongoose.Schema.Types.ObjectId
}, { collection: 'tags' });
var Tag = mongoose.model('Tag', tagSchema);
Tag.count({}, function(err, count){
console.log("Number of tags:", count);
});
Tag.find({}, function(err, count){
console.log(count)
console.log(err)
}).sort({'_id': 1}).limit(10);
Tag.count返回预期的文件数目,但我正在逐渐尝试访问与'文件时出错找到”
错误仅仅是[错误:parseError发生]
任何想法?
完美的作品,正是我一直在寻找的。非常感激! – Silke 2014-10-16 18:55:09