Skip to content

MERGE using array not working in some cases #1630

@mingfang

Description

@mingfang
WITH ['jon', 'snow'] AS cols
MERGE (v:PERSION {first: cols[0], last: cols[1]})
RETURN v

returns wrong result. person is missing first and last name.

  {
    "v": {
      "id": 2533274790395920,
      "label": "PERSION",
      "properties": {}
    }
  }

but a slight change(return v, cols) works

WITH ['jon', 'snow'] AS cols
MERGE (v:PERSION {first: cols[0], last: cols[1]})
RETURN v, cols

very strange.

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