You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@age.apache.org by "Munmud (via GitHub)" <gi...@apache.org> on 2023/06/24 01:51:27 UTC

[GitHub] [age] Munmud commented on issue #1006: Creating a node and setting one of it's property to be equal to it's id terminates the server abnormally

Munmud commented on issue #1006:
URL: https://github.com/apache/age/issues/1006#issuecomment-1605230145

   You can found the desired result by the following query
   ```sql
   SELECT * FROM cypher('online_orders', $$
       CREATE (u:User {name: 'user1', email: 'user1@email.com', phone: '1234-5678'})
       RETURN u
   $$) AS (u agtype);
   
   SELECT * FROM cypher('online_orders', $$
       MATCH (u:User {name: 'user1', email: 'user1@email.com', phone: '1234-5678'})
   	SET u.order_id = id(u)
       RETURN u
   $$) AS (u agtype);
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@age.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org