orango
orango copied to clipboard
find_outbound_vertex, can not find id of undefined.
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}`
)