age-website icon indicating copy to clipboard operation
age-website copied to clipboard

Error in interpretation of the MERGE clause

Open abner-ma opened this issue 8 months ago • 0 comments

In the documentation of the MERGE clause, there is an example as shown below, which I personally think is problematic. image In the following sql statement ''' SELECT * FROM cypher('graph_name', $$ MERGE (charlie {name: 'Charlie Sheen', age: 10}) RETURN charlie $$) as (v agtype); ''' No label name is given. So the sentence "If there exists a vertex with the label 'Critic', that vertex will be returned. Otherwise, the vertex will be created and returned." should be deleted. And output {id: 0; label: ‘Actor’: properties:{name: 'Charlie Sheen', age: 10}}::vertex should be {id: 0; label: ‘’: properties:{name: 'Charlie Sheen', age: 10}}::vertex image

abner-ma avatar Jun 20 '24 12:06 abner-ma