You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@age.apache.org by "AhmedMo0 (via GitHub)" <gi...@apache.org> on 2023/06/25 14:54:50 UTC
[GitHub] [age] AhmedMo0 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
AhmedMo0 commented on issue #1006:
URL: https://github.com/apache/age/issues/1006#issuecomment-1606121092
This error is because of that the vertex hasn't been created yet like @titoausten said,
You can bypass that by making another query to set this attribute after creating it like the following example
```sql
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