apache / apache/age

Replace properties is not supported

Open
#366 0 comments 1 reaction 0 assignees View on GitHub
bug
Dominant language
C
Stars
4.8k
Forks
523
Avg merge
1d 2h
Merged PRs (30d)
9

Description

**Describe the bug**
The following query will failed:
```cypher
MERGE (n:Project { name: $name })
SET n = $properties
RETURN n
```
while `$properties` is a map.

The following error occured:
`
error: SET clause expects a variable name
`

This is possible with neo4j https://neo4j.com/docs/cypher-manual/current/clauses/set/#set-replace-properties-using-map

**How are you accessing AGE (Command line, driver, etc.)?**
nodejs pg.

**Environment (please complete the following information):**
- Version: 1.1.0

**Additional context**
Do we have alternative way of doing this? Rather than query the whole node and iterate all properties in code, delete property one by one and then set them to the new values.

#343 seems the same issue.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.