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

Popular posts from this blog

javascript - Chart.js (Radar Chart) different scaleLineColor for each scaleLine -

apache - Error with PHP mail(): Multiple or malformed newlines found in additional_header -

java - Android – MapFragment overlay button shadow, just like MyLocation button -