-
Notifications
You must be signed in to change notification settings - Fork 467
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Setting all properties using map object does not work.
But works with map literal and individual map keys.
-- ERROR: properties() argument must resolve to a scalar value
SELECT * FROM cypher('playground', $$
WITH {first: 'jon', last: 'snow'} AS map
MERGE (v:PERSON {id: '1'})
SET v=map
RETURN v,map
$$) as (v agtype, map agtype);-- works with map keys
SELECT * FROM cypher('playground', $$
WITH {first: 'jon', last: 'snow'} AS map
MERGE (v:PERSON {id: '1'})
SET v.first=map.first, v.last=map.last
RETURN v,map
$$) as (v agtype, map agtype);
-- works with map literal
SELECT * FROM cypher('playground', $$
MERGE (v:PERSON {id: '1'})
SET v={first: 'jon', last: 'snow'}
RETURN v
$$) as (v agtype);Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working