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

Branch option tokens should be allowed to be traversals.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.1.0-incubating
    • 3.3.8, 3.4.3, 3.5.0
    • process
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: