DEV Community

Vijay kumar Soni
Vijay kumar Soni

Posted on

NEO4j Spring boot Integrations

In neo4jgraph in case of multiple valued graph like a graph of transactions have 4 level depth but n level width with each node in that case facing issue while parsing response of complex tree on java so need some suggestion how can I parse such type of complex 3d data in java

I am using below query::
MATCH (t:Transaction {transactionNumber: 'SMT2232432'})<-[:SENT|RECEIVED1..4]-(u:User)
WITH DISTINCT u
MATCH (u)<-[:SENT|RECEIVED1..4]-(t:Transaction)
WITH COLLECT(DISTINCT t) AS transactions
UNWIND transactions AS tx
MATCH path=(tx)-[:SENT|RECEIVED*1..4]-(:Transaction)
WITH COLLECT(DISTINCT nodes(path)) AS nodes
UNWIND nodes AS node
RETURN DISTINCT node
LIMIT 100000

Top comments (0)