Skip to content

Error in interpretation of the MERGE clause #327

@abner-ma

Description

@abner-ma

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions