javeme commented on code in PR #2699:
URL:
https://github.com/apache/incubator-hugegraph/pull/2699#discussion_r1892596877
##########
hugegraph-server/hugegraph-api/src/main/java/org/apache/hugegraph/api/traversers/KneighborAPI.java:
##########
@@ -179,18 +180,12 @@ public String post(@Context GraphManager manager,
if (request.withVertex && !vertexIds.isEmpty()) {
iterVertex = g.vertices(vertexIds.toArray());
measure.addIterCount(vertexIds.size(), 0L);
- } else {
- iterVertex = vertexIds.iterator();
}
- Iterator<?> iterEdge = Collections.emptyIterator();
- if (request.withPath) {
+ Iterator<Edge> iterEdge = Collections.emptyIterator();
+ if (request.withPath && request.withEdge) {
Review Comment:
looks like we cut the returning ids branch?
due to it is not easy for the client to determine whether it is an edge id
or an edge object?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]