orango icon indicating copy to clipboard operation
orango copied to clipboard

find_outbound_vertex, can not find id of undefined.

Open lizhuomeng71 opened this issue 6 years ago • 0 comments

For this usecase

let query = Comment.find() .outbound('user', 'eddie', {}) .return(orango.return.distinct())

Get Error Message can not find id of undefined.

Problem is at roboncode/orango/blob/master/lib/helpers/queryToAQL.js Line 120,

 AQB.expr(
    `${query.vertex.direction} '${ModelCls.collectionName}/${
      query.outbound.id
    }' ${col}`
  )

Should Be

 AQB.expr(
    `${query.vertex.direction} '${ModelCls.collectionName}/${
      query.vertex.id
    }' ${col}`
  )

lizhuomeng71 avatar Aug 06 '19 07:08 lizhuomeng71