humzakt commented on issue #951:
URL: https://github.com/apache/age/issues/951#issuecomment-1570667896

   Try this updated query:
   ```
   SELECT * from cypher('munmud', $$
   MATCH (u:User {id: 'user1'})-[:WATCHED]->(m:Movie)
   WITH DISTINCT m as watchedMovies
        MATCH (g:Genre)<-[]-(watchedMovies)
        WITH DISTINCT g as genre
                MATCH (genre)<-[:BELONGS_TO]-(am)
                WHERE EXISTS ((u)-[:WATCHED]->(am))
                RETURN DISTINCT am
   $$) as (V 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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to