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


##########
docs/src/reference/the-traversal.asciidoc:
##########
@@ -5553,6 +5551,36 @@ g.V().as('a').both().both().as('b').count()
 g.V().as('a').both().both().as('b').where('a',neq('b')).count()
 ----
 
+[[a-note-on-types]]
+== A Note on Types
+
+Gremlin provides type-based filtering capabilities through the `GType` 
enumeration, which represents the various data 
+types that can be encountered during graph traversals. Each `GType` constant 
corresponds to a specific Gremlin type and
+is primarily used with the `typeOf()` predicate to filter values based on 
their runtime type.
+
+The `GType` enumeration includes common data types such as:
+
+* **Numeric types**: `INT`, `LONG`, `DOUBLE`, `FLOAT`, `BYTE`, `SHORT`, 
`BIGDECIMAL`, `BIGINT`
+* **General types**: `STRING`, `BOOLEAN`, `CHAR`, `UUID`, `BINARY`
+* **Collection types**: `LIST`, `SET`, `MAP`
+* **Graph types**: `VERTEX`, `EDGE`, `PROPERTY`, `VPROPERTY`, `PATH`, `TREE`, 
`GRAPH`
+* **Temporal types**: `DATETIME`, `DURATION`
+* **Special types**: `NULL`, `NUMBER` (supertype for all numeric types)
+
+[gremlin-groovy,modern]

Review Comment:
   These examples aren't very good.  Consider some better, more realistic use 
cases. Isn't this about union'd data we want to pick part in some way? 
`values('age','name')` for example? or what about cases where edges and 
vertices are mixed? maybe you should describe a case where data is mixed within 
a property (either purposely or accidentally) and `typeOf` can help? i'm not 
sure if all this goes here or not. maybe it's part of `has()` or a new Gremlin 
Recipe. 



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