jihot2000 opened a new issue, #218:
URL: https://github.com/apache/incubator-age/issues/218

   **Is your feature request related to a problem? Please describe.**
   I find it is difficult when I try to query a link list.
   I searched and found some useful cypher statements which works for Neo4j.
   
   **Describe the solution you'd like**
   
   - UNWIND a vertex list
   
   ```
   MATCH p=()-[]->()
   WITH nodes(p) AS a
   UNWIND a AS b
   RETURN b
   ```
   
   - WHERE not a relationship
   
   ```
   MATCH (head)-[:edge*]->()
   WHERE NOT ()-[:edge]->(head)
   RETURN head
   ```
   
   - list generation using IN
   
   ```
   MATCH p=()-[]->()
   WITH nodes(p) AS a
   RETURN [x IN a | x.name]
   ```
   
   


-- 
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]

Reply via email to