0

When trying to find and return all the paths connected to a specific node:

MATCH p = (DocID:ProjectList {DocumentID: "specificied_doc"})-[*]-(*)
RETURN p

Memgraph lab looses connection with a Query Failed, [object ProgressEvent] error.

I am expecting about 41 paths to be shown with some depth and some without any depth.

Trying to use:

MATCH p = (DocID:ProjectList {DocumentID: "specificied_doc"})-[*]-(n)
RETURN p

Yields the same error without any results.

I am running memgraph in a docker desktop container, increasing the number of allocated cpus via wslconfig does not make any difference.

Dewald
  • 33
  • 5
  • Running the following query displays all results without any problem: `MATCH links = (Projectlist)-[:references]->(Reflist) RETURN links` – Dewald May 16 '23 at 11:23

1 Answers1

2

The following link pointed me in the right direction: How do I make a query that returns all nodes reachable a given node?

Seems that using bfs works and prevents the memgraph lab error and query failure:

MATCH p = (DocID:ProjectList {DocumentID: "specificied_doc"})-[:references *bfs]->(n) RETURN p
Dewald
  • 33
  • 5
  • I am glad you found a solution because I wanted to comment that when I try running your first example, it fails on query syntax. I get this error: `Query failed: line 1:68 extraneous input '*' expecting {AFTER, ALTER, ANALYZE, ASYNC, AUTH .....`. I think the Lab error has to do with some timeout happening between Lab <> Memgraph. – Toni May 16 '23 at 11:59