Hi Thank you for your reply, but I did this in embedded neo4j.
This is what I've done.
String queryAllNotifications = String.format("start n=(%d), user=(%d) match
(n)-[:%s]-(x)-[:%s]-(user) return x", notificationsIndex.getId(),
userNode.getId(),
CONTAINS.name(),
MESSAGE_TO.name());
And I'm pretty sure that all the variables are correct.
And this is the printout of the string
start n=(6), user=(9) match (n)-[:Contains]-(x)-[:Message_To]-(user) return
x
Thanks a lot.
--
View this message in context:
http://neo4j-community-discussions.438527.n3.nabble.com/Cypher-with-sequenced-relationships-return-empty-tp3289960p3291022.html
Sent from the Neo4j Community Discussions mailing list archive at Nabble.com.
_______________________________________________
Neo4j mailing list
[email protected]
https://lists.neo4j.org/mailman/listinfo/user