@@ -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
5255gremlin> 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)))
5662gremlin> 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
6173See: 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