spmallette commented on code in PR #3448:
URL: https://github.com/apache/tinkerpop/pull/3448#discussion_r3389063326
##########
docs/src/reference/the-traversal.asciidoc:
##########
@@ -5049,14 +5049,14 @@ It is important to see how the paths of all the
emanating traversers are united
image::tree-step2.png[width=500]
-The resultant tree data structure can then be manipulated (see `Tree` JavaDoc).
+The resultant tree data structure can then be navigated with its tree-shaped
API such as `childAt()`, `findSubtree()`, `getNodesAtDepth()`, and
`getLeafNodes()` (see `Tree` JavaDoc).
[gremlin-groovy,modern]
----
tree = g.V().out().out().tree().by('name').next()
-tree['marko']
-tree['marko']['josh']
-tree.getObjectsAtDepth(3)
+tree.childAt('marko')
Review Comment:
would be nice if we didn't lose the groovy syntax. `childAt` is better than
the Java alternative but less so for Groovy. a bit of Groovy sugar would bring
that back.
--
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]