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
。
可能嗎?