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

Add first class support for an optional traversal

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.1.0-incubating
    • 3.2.0-incubating
    • process
    • None

    Description

      Both SparQL and Cypher use the "Optional" keyword to indicate an optional traversal. SQL uses the "left join".

      Gremlin has no first class support for an optional traversal. It can be achieved with the choose step but it is verbose, unintuitive and not what the choose step is intended for.

      The benefits of optional traversals are many. In particular it makes it trivial to load complete subgraphs/trees with one easy to read intuitive gremlin statement.

      Attachments

        Activity

          People

            pietermartin pieter martin
            pietermartin pieter martin
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: