spmallette commented on code in PR #3133:
URL: https://github.com/apache/tinkerpop/pull/3133#discussion_r2145920289


##########
docs/src/recipes/between-vertices.asciidoc:
##########
@@ -22,14 +22,14 @@ traversal on the paths found between them. Consider the 
following examples using
 
 [gremlin-groovy,modern]
 ----
-g.V(1).bothE()                                   <1>
-g.V(1).bothE().where(otherV().hasId(2))          <2>
+g.V(1).bothE()                                          <1>
+g.V(1).bothE().where(otherV().hasId(2))                 <2>
 v1 = g.V(1).next();[]
 v2 = g.V(2).next();[]
-g.V(v1).bothE().where(otherV().is(v2))           <3>
-g.V(v1).outE().where(inV().is(v2))               <4>
-g.V(1).outE().where(inV().has(id, within(2,3)))  <5>
-g.V(1).out().where(__.in().hasId(6))             <6>
+g.V(v1.id()).bothE().where(otherV().id().is(v2.id()))   <3>

Review Comment:
   +1 to not removing the sugar syntax. at some point we'll need to better 
acknowledge sugar syntax vs what the grammar supports.  it would be nice to 
come up with some foundations for that here.



-- 
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]

Reply via email to