-
Notifications
You must be signed in to change notification settings - Fork 483
Ambiguous return message while creating a new node ($$ CREATE) #379
Description
Creating a new graph with the query "SELECT create_graph('demo_graph');" returns - "(1 row)" which assures me that the graph is created.
This is not consistent when I create a new node in the graph with the query "SELECT * FROM cypher('demo_graph', $$ CREATE (n:Person {name : "james", bornIn : "US"}) $$) AS (a agtype);" which returns "(0 rows)". This is ambiguous to me as an end-user whether the node is actually created or not.
To check whether the query was executed successfully or not, I searched for the inserted record with the query "SELECT * FROM cypher('demo_graph', $$ MATCH (v) RETURN v $$) as (v agtype);" . This returns the result set along with the newly added node. This shows me that the node was created successfully but the return message displays "(0 rows)".