Uploaded image for project: 'TinkerPop'
  1. TinkerPop
  2. TINKERPOP-1084

Branch option tokens should be allowed to be traversals.

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.1.0-incubating
    • Fix Version/s: 3.3.8, 3.4.3, 3.5.0
    • Component/s: process
    • Labels:
      None

      Description

      It would be cool if we could do this:

      g.V().hasLabel("person").
        choose(values("age")).
          option(is(lt(28)), constant("low")).
          option(is(between(29,30)), constant("medium"))
          option(none,constant("high"))
      

      That is, "option tokens" can be traversals and if they are evaluate the traversal as a predicate.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                dkuppitz Daniel Kuppitz
                Reporter:
                okram Marko A. Rodriguez
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: