Closed sbespalov closed 5 years ago
Hello @sbespalov,
MERGE
is supported, however not all "complex" cases of SET
are supported (in your example setting node properties by subproperty: n=row.props
).
If you "simplify" query a bit it should work:
UNWIND {rows} as row
MERGE (n:`ArtifactCoordinates`{uuid: row.props.uuid})
SET n.path=row.props.path,
n.uuid=row.props.uuid,
n.version=row.props.version
RETURN row.nodeRef as ref, ID(n) as id, {type} as type
@dwitry it works!
many thanks for your help!
I am not much familiar with cypher, so just want to understand does below query assumed to work with
cypher-for-gremlin
? The documentation tells thatMERGE
statements supported, so I expect it should probably work :)Query:
Also there is query parameters:
{type=node, rows=[{nodeRef=-1, props={path=org/carlspring/test-artifact.jar, uuid=81e6a52a-7ff2-41e4-9888-4e0b8f2135ff, version=null}}]}
This query failed within
CypherAst
translation:I'll be very grateful for any help