spmallette commented on code in PR #3211:
URL: https://github.com/apache/tinkerpop/pull/3211#discussion_r2440645052


##########
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.
+
+[source,text]
+----
+// Filter vertices by property type
+gremlin> g.V().has("age", P.typeOf(GType.INT)).values("name")
+==>marko
+==>vadas
+==>josh
+==>peter
+
+// Filter by class name registered in the GlobalTypeCache

Review Comment:
   maybe the `Note on Types` section should have some user facing reference to 
`GlobalTypeCache`? what about the provider docs for those trying to extend this 
feature? 



-- 
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]

Reply via email to