[ 
https://issues.apache.org/jira/browse/TINKERPOP-2234?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18030703#comment-18030703
 ] 

ASF GitHub Bot commented on TINKERPOP-2234:
-------------------------------------------

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


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

Review Comment:
   I think this section jumps a bit too quickly to the details and needs more 
introductory text to help orient readers to what they are about to read. 
   
   > Gremlin steps typically operate over a handful of types that are mostly 
standard across graph systems. There are the common primitive types like, ..... 
container types, like, .... and structural types particular to graphs such as 
Vertex, Edge, etc.......... Gremlin identifies these types in the `GType` 
enumeration, offering a clear presentation of the standard data types one might 
typically encounter with Gremlin. This enumeration is an important part of the 
Gremlin language in that it acts as the argument to the `typeOf` predicate used 
for filtering values based on their runtime data type.
   > 
   > `GType` consists of the following enumerations:
   
   I quickly hacked that together, but perhaps it conveys the difference in 
tone and lead-in?
   
   





> Introduce Type Predicate
> ------------------------
>
>                 Key: TINKERPOP-2234
>                 URL: https://issues.apache.org/jira/browse/TINKERPOP-2234
>             Project: TinkerPop
>          Issue Type: Improvement
>          Components: process
>    Affects Versions: 3.4.2
>            Reporter: Stephen Mallette
>            Priority: Major
>
> Provide for a {{typeOf()}} predicate that allows for testing the type of an 
> object which would enable neat things like:
> {code}
> g.V().outE().has('weight',gt(0.1)).inV().path().unfold().is(typeOf(VERTEX))
> {code}
> See the linked DISCUSS thread for more information.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to