This is an automated email from the ASF dual-hosted git repository.

andreac pushed a commit to branch 3.8-dev
in repository https://gitbox.apache.org/repos/asf/tinkerpop.git


The following commit(s) were added to refs/heads/3.8-dev by this push:
     new ddf21eec3b [TINKERPOP-2491] Fix docs by adding missing unfolds (#3250)
ddf21eec3b is described below

commit ddf21eec3b717015837233d5ea2f397cdd3affae
Author: andreachild <[email protected]>
AuthorDate: Wed Oct 22 09:16:33 2025 -0700

    [TINKERPOP-2491] Fix docs by adding missing unfolds (#3250)
    
    https://issues.apache.org/jira/browse/TINKERPOP-2491
    
    Fix documentation build by adding missing unfold() which are required after 
TINKERPOP-2491 was merged.
---
 docs/src/recipes/appendix.asciidoc        | 2 +-
 docs/src/recipes/recommendation.asciidoc  | 6 +++---
 docs/src/recipes/shortest-path.asciidoc   | 2 +-
 docs/src/reference/the-traversal.asciidoc | 8 ++++----
 4 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/docs/src/recipes/appendix.asciidoc 
b/docs/src/recipes/appendix.asciidoc
index 298d2cbb5d..49a79161d8 100644
--- a/docs/src/recipes/appendix.asciidoc
+++ b/docs/src/recipes/appendix.asciidoc
@@ -311,7 +311,7 @@ g.addV('person').property('name','alice').as('alice').
       times(3).emit().
     select(all, "x").
     project("name","score").
-      by(tail(local, 1).select("a").values("name")).
+      by(tail(local, 1).unfold().select("a").values("name")).
       by(unfold().
          sack(assign).by(select("b")).
          sack(mult).by(select("c")).
diff --git a/docs/src/recipes/recommendation.asciidoc 
b/docs/src/recipes/recommendation.asciidoc
index ce89794cf0..1ed405b21e 100644
--- a/docs/src/recipes/recommendation.asciidoc
+++ b/docs/src/recipes/recommendation.asciidoc
@@ -199,7 +199,7 @@ g.V().has("person","name","alice").as("alice").
       where(within("self")).count()).as("g").
       select(values).
       order(local).
-        by(desc).limit(local, 1).as("m").
+        by(desc).limit(local, 1).unfold().as("m").
       select("g").unfold().
       where(select(values).as("m")).select(keys)
 ----
@@ -217,7 +217,7 @@ g.V().has("person","name","alice").as("alice").
       where(within("self")).count()).as("g").
       select(values).
       order(local).
-        by(desc).limit(local, 1).as("m").
+        by(desc).limit(local, 1).unfold().as("m").
       select("g").unfold().
       where(select(values).as("m")).select(keys).
       out("bought").where(without("self"))
@@ -235,7 +235,7 @@ g.V().has("person","name","alice").as("alice").
       where(within("self")).count()).as("g").
       select(values).
       order(local).
-        by(desc).limit(local, 1).as("m").
+        by(desc).limit(local, 1).unfold().as("m").
       select("g").unfold().
       where(select(values).as("m")).select(keys).
       out("bought").where(without("self")).
diff --git a/docs/src/recipes/shortest-path.asciidoc 
b/docs/src/recipes/shortest-path.asciidoc
index eacd3b48d3..d2d9067bf8 100644
--- a/docs/src/recipes/shortest-path.asciidoc
+++ b/docs/src/recipes/shortest-path.asciidoc
@@ -187,7 +187,7 @@ g.withSideEffect('v', []).                            <1>
   unfold().
   map(unfold().as('v_or_e').
       coalesce(V().where(eq('v_or_e')).aggregate(local,'v'),
-               select('v').tail(local, 1).bothE().where(eq('v_or_e'))).
+               select('v').tail(local, 
1).unfold().bothE().where(eq('v_or_e'))).
       values('name','weight').
       fold()).
   group().
diff --git a/docs/src/reference/the-traversal.asciidoc 
b/docs/src/reference/the-traversal.asciidoc
index 1bbb336560..a4a241b927 100644
--- a/docs/src/reference/the-traversal.asciidoc
+++ b/docs/src/reference/the-traversal.asciidoc
@@ -3311,13 +3311,13 @@ contains additional information that will be applied if 
an existing vertex is fo
 ----
 
g.inject([[(T.id):400],[(T.label):'Dog',name:'Pixel',age:1],[updated:'2022-02-1']]).as('m').
   mergeV(select('m').limit(local,1).unfold()). <1>
-  option(Merge.onCreate, select('m').range(local,1,2)). <2>
-  option(Merge.onMatch, select('m').tail(local)) <3>
+  option(Merge.onCreate, select('m').range(local,1,2).unfold()). <2>
+  option(Merge.onMatch, select('m').tail(local).unfold()) <3>
 g.V(400).valueMap().with(WithOptions.tokens)
 
g.inject([[(T.id):400],[(T.label):'Dog',name:'Pixel',age:1],[updated:'2022-02-1']]).as('m').
   mergeV(select('m').limit(local,1).unfold()).
-  option(Merge.onCreate, select('m').range(local,1,2)).
-  option(Merge.onMatch, select('m').tail(local))  <4>
+  option(Merge.onCreate, select('m').range(local,1,2).unfold()).
+  option(Merge.onMatch, select('m').tail(local).unfold())  <4>
 g.V(400).valueMap().with(WithOptions.tokens)  <5>
 ----
 

Reply via email to