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)