Skip to content

Commit f421483

Browse files
committed
Merge branch '3.8-dev'
2 parents 34f48a5 + 827d703 commit f421483

File tree

1 file changed

+16
-11
lines changed

1 file changed

+16
-11
lines changed

docs/src/upgrade/release-3.7.x.asciidoc

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -40,33 +40,38 @@ filtering or `has(key, predicate)` for value comparisons.
4040
4141
[source,text]
4242
----
43-
// 3.7.4 - this condition is meaningless but yields result because count() is productive
44-
gremlin> g.V().has("age", __.count())
43+
gremlin> g.addV('person').property('name','alice').property('age',2)
44+
==>v[0]
45+
46+
// 3.7.x - this condition is meaningless but yields result because count() is productive
47+
gremlin> g.V().has("age", __.properties().count())
4548
==>v[1]
4649
==>v[2]
4750
==>v[3]
4851
==>v[4]
4952
==>v[5]
5053
==>v[6]
51-
// 3.7.4 - simple example
54+
// simple example
5255
gremlin> g.V().has("age", __.is(P.gt(30)))
5356
==>v[4]
5457
==>v[6]
55-
// 3.7.5+ - for proper use cases consider using predicate or where() for filtering
58+
59+
// 3.8.0 - traversals no longer yield results
60+
gremlin> g.V().has("age", __.properties().count())
61+
gremlin> g.V().has("age", __.is(P.gt(30)))
5662
gremlin> g.V().has("age", P.gt(30))
5763
==>v[4]
5864
==>v[6]
65+
66+
// the proper way to write this query for 3.7.x and 3.8.0 is with where()
67+
gremlin> g.V().project('v','p').by().by(properties().count()).
68+
......1> where('v', eq('p')).by('age').by().
69+
......2> select('v')
70+
==>v[0]
5971
----
6072
6173
See: link:https://issues.apache.org/jira/browse/TINKERPOP-1463[TINKERPOP-1463]
6274
63-
=== Upgrading for Providers
64-
65-
==== Graph System Providers
66-
67-
==== Graph Driver Providers
68-
69-
7075
== TinkerPop 3.7.4
7176
7277
*Release Date: August 1, 2025*

0 commit comments

Comments
 (0)