[
https://issues.apache.org/jira/browse/TINKERPOP-2234?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18019678#comment-18019678
]
ASF GitHub Bot commented on TINKERPOP-2234:
-------------------------------------------
xiazcy opened a new pull request, #3207:
URL: https://github.com/apache/tinkerpop/pull/3207
As discussed previously (see links in the
[Jira](https://issues.apache.org/jira/browse/TINKERPOP-2234)), this proposal
aims to add a `typeOf` predicate for asserting types in Gremlin.
For maintainability, this also defines a set of core type enum (`GType`) to
be used in Gremlin (which will replace `N` for `asNumber()`), as well as an
overload for String tokens, defined by a global cache for providers to register
their own custom types, and to be recognized by the Grammar.
VOTE +1
> 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)