Skip to content

Commit ddf21ee

Browse files
authored
[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.
1 parent a64ed72 commit ddf21ee

4 files changed

Lines changed: 9 additions & 9 deletions

File tree

docs/src/recipes/appendix.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ g.addV('person').property('name','alice').as('alice').
311311
times(3).emit().
312312
select(all, "x").
313313
project("name","score").
314-
by(tail(local, 1).select("a").values("name")).
314+
by(tail(local, 1).unfold().select("a").values("name")).
315315
by(unfold().
316316
sack(assign).by(select("b")).
317317
sack(mult).by(select("c")).

docs/src/recipes/recommendation.asciidoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ g.V().has("person","name","alice").as("alice").
199199
where(within("self")).count()).as("g").
200200
select(values).
201201
order(local).
202-
by(desc).limit(local, 1).as("m").
202+
by(desc).limit(local, 1).unfold().as("m").
203203
select("g").unfold().
204204
where(select(values).as("m")).select(keys)
205205
----
@@ -217,7 +217,7 @@ g.V().has("person","name","alice").as("alice").
217217
where(within("self")).count()).as("g").
218218
select(values).
219219
order(local).
220-
by(desc).limit(local, 1).as("m").
220+
by(desc).limit(local, 1).unfold().as("m").
221221
select("g").unfold().
222222
where(select(values).as("m")).select(keys).
223223
out("bought").where(without("self"))
@@ -235,7 +235,7 @@ g.V().has("person","name","alice").as("alice").
235235
where(within("self")).count()).as("g").
236236
select(values).
237237
order(local).
238-
by(desc).limit(local, 1).as("m").
238+
by(desc).limit(local, 1).unfold().as("m").
239239
select("g").unfold().
240240
where(select(values).as("m")).select(keys).
241241
out("bought").where(without("self")).

docs/src/recipes/shortest-path.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ g.withSideEffect('v', []). <1>
187187
unfold().
188188
map(unfold().as('v_or_e').
189189
coalesce(V().where(eq('v_or_e')).aggregate(local,'v'),
190-
select('v').tail(local, 1).bothE().where(eq('v_or_e'))).
190+
select('v').tail(local, 1).unfold().bothE().where(eq('v_or_e'))).
191191
values('name','weight').
192192
fold()).
193193
group().

docs/src/reference/the-traversal.asciidoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3311,13 +3311,13 @@ contains additional information that will be applied if an existing vertex is fo
33113311
----
33123312
g.inject([[(T.id):400],[(T.label):'Dog',name:'Pixel',age:1],[updated:'2022-02-1']]).as('m').
33133313
mergeV(select('m').limit(local,1).unfold()). <1>
3314-
option(Merge.onCreate, select('m').range(local,1,2)). <2>
3315-
option(Merge.onMatch, select('m').tail(local)) <3>
3314+
option(Merge.onCreate, select('m').range(local,1,2).unfold()). <2>
3315+
option(Merge.onMatch, select('m').tail(local).unfold()) <3>
33163316
g.V(400).valueMap().with(WithOptions.tokens)
33173317
g.inject([[(T.id):400],[(T.label):'Dog',name:'Pixel',age:1],[updated:'2022-02-1']]).as('m').
33183318
mergeV(select('m').limit(local,1).unfold()).
3319-
option(Merge.onCreate, select('m').range(local,1,2)).
3320-
option(Merge.onMatch, select('m').tail(local)) <4>
3319+
option(Merge.onCreate, select('m').range(local,1,2).unfold()).
3320+
option(Merge.onMatch, select('m').tail(local).unfold()) <4>
33213321
g.V(400).valueMap().with(WithOptions.tokens) <5>
33223322
----
33233323

0 commit comments

Comments
 (0)