Skip to content

MERGE incorrectly creates multiple vertices #1691

@mingfang

Description

@mingfang
SELECT * FROM cypher('playground', $$
unwind ["foo", "foo"] as each
merge (v:TEST {name: each})
return v
$$) AS (v agtype)

returns

[
  {
    "v": {
      "id": 3659174697238531,
      "label": "TEST",
      "properties": {
        "name": "foo"
      }
    }
  },
  {
    "v": {
      "id": 3659174697238532,
      "label": "TEST",
      "properties": {
        "name": "foo"
      }
    }
  }
]

creates two vertices when it should only create one. (confirmed with neo4j)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions