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

Allow retrieval of both results and profile()

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.4.8
    • None
    • process
    • None

    Description

      I'm not sure if this will be possible or what might prevent it but it would be nice if we could return both a traversal result and a profile(). You can technically do it with getSideEffects() but we made the decision to not allow side-effect retrieval remotely so that avenue is closed. Basically, it would be nice if profile() could behave like other side-effect steps where you can simply cap() results, but i guess I can sorta see why that wouldn't work:

      gremlin> g.V().out().profile('x').union(cap('x'),fold())
      When specified, the profile()-Step must be the last step or followed only by the cap()-step.
      Type ':help' or ':h' for help.
      Display stack trace? [yN]
      

      Perhaps we could do a profile().by() or the like to control how the capping works?

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              spmallette Stephen Mallette
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: