我有这样的查询:
Book.search(esQuery, {
hydrate: true
}, function(err, res) {
if (res) {
return cb(null, res.hits.hits);
} else {
return cb 'error',null
}
});
我在 Book 文档中有一个参考文档。是否可以加载 res.hits.hits 中引用的 Mongo?
我有这样的查询:
Book.search(esQuery, {
hydrate: true
}, function(err, res) {
if (res) {
return cb(null, res.hits.hits);
} else {
return cb 'error',null
}
});
我在 Book 文档中有一个参考文档。是否可以加载 res.hits.hits 中引用的 Mongo?