[
https://issues.apache.org/jira/browse/TINKERPOP-2234?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18022742#comment-18022742
]
ASF GitHub Bot commented on TINKERPOP-2234:
-------------------------------------------
spmallette commented on code in PR #3211:
URL: https://github.com/apache/tinkerpop/pull/3211#discussion_r2378832526
##########
docs/src/reference/the-traversal.asciidoc:
##########
@@ -5496,6 +5496,8 @@ TinkerPop 3.6.0 release that allow working with regular
expressions. These are `
| `P.between(number,number)` | Is the incoming number greater than or equal to
the first provided number and less than the second?
| `P.within(objects...)` | Is the incoming object in the array of provided
objects?
| `P.without(objects...)` | Is the incoming object not in the array of the
provided objects?
+| `P.typeOf(GType)` | Is the incoming object of the type indicated by the
provided `GType` token?
+| `P.typeOf(string)` | Is the incoming object of the type indicated by the
provided `String`?
Review Comment:
i realized that `P.typeOf(Class)` is sugar syntax so i guess it makes sense
not to include that here. Not sure how we want to start better documenting the
difference between the canonical grammar and the variants. I think that as of
right now the "Differences" section is the best place to do that. Java doesn't
have such a section yet, but I think this point could be a start of one.
> 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)