sails.js - Orientdb fetch plan returning ID instead of record -
i querying class sails-orientdb adapter sailjs. expect see last_comment field expanded gives me id. in orientdb studio same sql below shows last_comment expanded
questions.query("select * questions fetchplan last_comment:0 order createdat desc", function (err, retrievedquestions) { if (err) res.send(500,"error") res.send(200, retrievedquestions); });
how can resultset return expanded?
orientdb v2.0.12
can try level:1
questions.query("select * questions fetchplan last_comment:1 order createdat desc", function (err, retrievedquestions) { if (err) res.send(500,"error") res.send(200, retrievedquestions); });
Comments
Post a Comment