Sails.js Orientdb获取计划返回ID而不是记录
我正在从Sails-orientdb适配器为Sailjs查询一个类。我希望看到last_comment字段展开,但它只返回ID。在orientdb studio中,下面相同的SQL显示展开的last_commentSails.js Orientdb获取计划返回ID而不是记录,sails.js,orientdb,sails-orientdb,Sails.js,Orientdb,Sails Orientdb,我正在从Sails-orientdb适配器为Sailjs查询一个类。我希望看到last_comment字段展开,但它只返回ID。在orientdb studio中,下面相同的SQL显示展开的last_comment Questions.query("select * from Questions fetchplan last_comment:0 order by createdAt desc", function (err, retrievedQuestions) { i
Questions.query("select * from Questions fetchplan last_comment:0 order by createdAt desc", function (err, retrievedQuestions) {
if (err) res.send(500,"Error")
res.send(200, retrievedQuestions);
});
如何使结果集返回展开
Orientdb v2.0.12您可以尝试使用级别1吗
Questions.query("select * from Questions fetchplan last_comment:1 order by createdAt desc", function (err, retrievedQuestions) {
if (err) res.send(500,"Error")
res.send(200, retrievedQuestions);
});
没什么区别。最后一条注释返回了以下内容:“#19:2”。这与尝试使用级别相同:0是,这是直接链接。它出现在OrientedStudio expandedok中,让我检查一下sails OrientedDB。您使用的是哪个版本?带有orientjs库的10.55版