Search code examples
sails.jsorientdbwaterlinesails-orientdb

Select edge attributes and also expand/populate in and out in waterline


How can I populate in and out of edges in waterline i am using waterline-oreintdb adopter

here is my query

select *,out.* from sellings // selling is edge class

Thanks


Solution

  • This sounds more like an OrientDB question than an waterline one. One option would be to use a fetch plan (OrientDB Docs):

    select @this.toJSON('fetchPlan:in:1 out:1') from selling