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

Gremlin.NET should throw if already iterated traversal gets modulated

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 3.4.12, 3.5.1
    • None
    • dotnet
    • None

    Description

      It is not possible to modulate a traversal that was already iterated. Gremlin-Java makes that clear by throwing an exception:

      gremlin> t = g.V().has('test','test'); []
      gremlin> t.hasNext()
      ==>true
      gremlin> t.property('test','test').iterate()
      The traversal strategies are complete and the traversal can no longer be modulated
      

      Gremlin.NET however does not throw an exception which can be confusing as users might expect this to work.

      This problem was reported by a user on SO: https://stackoverflow.com/q/69031410/6753576

      Attachments

        Activity

          People

            Unassigned Unassigned
            Florian Hockmann Florian Hockmann
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: