[
https://issues.apache.org/jira/browse/TINKERPOP-2234?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18030712#comment-18030712
]
ASF GitHub Bot commented on TINKERPOP-2234:
-------------------------------------------
spmallette commented on code in PR #3211:
URL: https://github.com/apache/tinkerpop/pull/3211#discussion_r2440735913
##########
docs/src/upgrade/release-3.8.x.asciidoc:
##########
@@ -834,6 +867,10 @@ See:
link:https://issues.apache.org/jira/browse/TINKERPOP-3192[TINKERPOP-3192]
==== Graph System Providers
+==== Type Predicate
+
+Type predicate can accept custom types via `String` class name registered
inside the `Type.GlobalTypeCache`. The Gremlin grammar accepts any string
literal, which is resolved into the class registered inside the cache.
Review Comment:
This section is really light for such an important topic. Why/when would
providers use this? How about a link to provider documentation that explains
how this all works?
> 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)