WendelLana commented on issue #995:
URL: https://github.com/apache/age/issues/995#issuecomment-1612223835
I've been investigating these functions, and here are some queries that we
can use for debugging:
**1. entity_exists**
This function checks if a variable has been deleted and returns true or
false if an entity still exists.
Query
```
SELECT * FROM cypher('graph_name', $$
MATCH (x:Developer)
CREATE (x)-[r:PARTICIPATES]->(p:Project)
RETURN x
$$) AS (vertex agtype);
```
**2. get_label_name**
This function returns the label name, it's used in the AGE functions
`startNode` and `endNode()`
Query
```
SELECT * FROM cypher('graph_name', $$
MATCH (d:Developer)-[r]-(p:Project)
RETURN startNode(r), endNode(r)
$$) as (start_node agtype, end_node agtype);
```
I'll look more into these functions and their query plan trees to think of
solutions for label ID
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]