[
https://issues.apache.org/jira/browse/TINKERPOP-2234?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18030708#comment-18030708
]
ASF GitHub Bot commented on TINKERPOP-2234:
-------------------------------------------
spmallette commented on code in PR #3211:
URL: https://github.com/apache/tinkerpop/pull/3211#discussion_r2440647518
##########
docs/src/dev/provider/gremlin-semantics.asciidoc:
##########
@@ -776,7 +776,7 @@
link:https://tinkerpop.apache.org/docs/x.y.z/reference/#asDate-step[reference]
*Description:* converts the incoming traverser to the nearest parsable type if
no argument is provided, or to the desired numerical type, based on the number
token (`N`) provided.
-*Syntax:* `asNumber()` | `asNumber(N numberToken)`
Review Comment:
we've added a new predicate but gremlin-semantics doesn't have any mention
of it. i can't remember if we have a section for predicates yet here? but maybe
it's time we structure something in? same for enums (i.e. GType)?
> 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)