Here's my use case: I want to show my friends' "comments" and "likes".

For comments, I can do e.g. "(friend) -[:WROTE]-> (comment)", and for likes,
I can do e.g. "(friend) -[:LIKES]-> (object)", but is there a way I can
combine both these matches into one Cypher query? I know I can put multiple
match clauses, but it's my understanding that that's an AND, not an OR.

For this particular case, since the length/shape of the path is the same for
both cases, being able to specify multiple choices for relationship type
would work here, e.g. "(friend) -[:WROTE,:LIKES]-> (object)", where the
returned object could potentially be a comment.

But if the relationship direction is different in the two cases (as they
actually are in our app -- we have "(friend) <-[AUTHOR]- (comment)"), we
probably need two different match clauses.

If this isn't possible today, consider it a feature request. Thanks!

Aseem
_______________________________________________
Neo4j mailing list
[email protected]
https://lists.neo4j.org/mailman/listinfo/user

Reply via email to