The scenario is as follows
User A-[follows]->B and B-[follows]-A
with such bidirectional relation between same Node entities, load cypher for A takes indefinite to load.
<MATCH (n:User) WHERE n.id = $id WITH n, id(n) AS internalNeo4jId RETURN n{ .name, .passToken, .phoneNumber, nodeLabels: labels(n), internalNeo4jId: id(n), paths: [p = (n)-[:right_swiped|Knows|left_swiped|part_of]->()-[:right_swiped|Knows|left_swiped|part_of*0..]-()-[:right_swiped|Knows|left_swiped|part_of*0..]-()-[:right_swiped|Knows|left_swiped|part_of*0..]-() | p]}/>
This cypher is created by Spring Data neo4j but even if I copy-paste this to desktop neo4j, it times out.
My question is, does Neo4j support such relationship models? If yes than does Spring is creating the issue by creating a cypher which times out.
Thanks, Clem
This cypher is created by Spring Data to fetch full Node.
I wanted to find out whether this is a Spring issue or Neo4j is not capable of handling such relation structures.
My opinion is that it should be considered a bug in SDN where one issue is fixed but another opened. With this query, SDN attempts to load almost entire connected graph which is impractical and is not desired.