age-website
age-website copied to clipboard
Error in interpretation of the MERGE clause
In the documentation of the MERGE clause, there is an example as shown below, which I personally think is problematic.
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