spmallette commented on code in PR #3211:
URL: https://github.com/apache/tinkerpop/pull/3211#discussion_r2440640916
##########
docs/src/upgrade/release-3.8.x.asciidoc:
##########
@@ -50,11 +50,46 @@ gremlin>
g.V().has('airport','code','IAD').valueMap('code','desc','lon','lat')
==>[code:[IAD],lon:[-77.45580292],lat:[38.94449997],desc:[Washington Dulles
International Airport]]
----
+==== Type Predicate
+
+The new `P.typeOf()` predicate allows filtering traversers based on their
runtime type. It accepts either a `GType`
+enum constant or a string representation of a simple class name. This
predicate is particularly useful for type-safe
+filtering in heterogeneous data scenarios.
Review Comment:
> This predicate is particularly useful for type-safe filtering in
heterogeneous data scenarios.
the examples should demonstrate that better since this is deemed
"particularly useful". how about:
```
g.V().values("age","name").is(P.typeOf("Integer"))
```
to drive this section.
--
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]