0
如何从搜索结果中排除某些文档?猫鼬 - 如何跳过查找特定文档?
Stream.findOne({
_id: query.id
}, function(err, stream) {
var output = {};
if (err) {
console.log("Error retrieving streams: " + err);
}
if (!stream) {
console.log("No stream found");
}
if (stream) {
console.log("Stream found");
}
});
比如我想findOne
跳过寻找的1234
_id
。
可能吗?