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

Neo4j GraphStep with element arguments ignores has

    XMLWordPrintableJSON

Details

    Description

      When a neo4j traversal is started with explicit elements these elements are returned even if they do not satisfy has filters that have been merged into the start step. For example:

      gremlin> graph = Neo4jGraph.open('/tmp/neo4j')
      ==>neo4jgraph[EmbeddedGraphDatabase [/tmp/neo4j]]
      gremlin> v0 = graph.addVertex(label, "foo")
      ==>v[0]
      gremlin> g = graph.traversal()
      ==>graphtraversalsource[neo4jgraph[EmbeddedGraphDatabase [/tmp/neo4j]], standard]
      gremlin> g.V(v0).has(label, "bar")
      ==>v[0]
      gremlin> g.V(v0).map{it.get()}.has(label, "bar") // map prevents has from merging into start step
      gremlin> g.V(v0).has("a", "b")
      ==>v[0]
      

      Attachments

        Activity

          People

            spmallette Stephen Mallette
            gereedy Geoff Reedy
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: