You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tinkerpop.apache.org by "Marko A. Rodriguez (JIRA)" <ji...@apache.org> on 2016/01/13 23:36:39 UTC
[jira] [Created] (TINKERPOP-1084) Branch option tokens should be
allowed to be traversals.
Marko A. Rodriguez created TINKERPOP-1084:
---------------------------------------------
Summary: Branch option tokens should be allowed to be traversals.
Key: TINKERPOP-1084
URL: https://issues.apache.org/jira/browse/TINKERPOP-1084
Project: TinkerPop
Issue Type: Improvement
Components: process
Affects Versions: 3.1.0-incubating
Reporter: Marko A. Rodriguez
It would be cool if we could do this:
{code}
g.V().hasLabel("person").
choose(values("age")).
option(is(lt(28)), constant("low")).
option(is(between(29,30)), constant("medium"))
option(none,constant("high"))
{code}
That is, "option tokens" can be traversals and if they are evaluate the traversal as a predicate.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)