Hi,
I would like to be able to return multiple nodes by searching for a list of node properties (and e.g names) in one search statement. Is this issue solvable by using the Search phrase functionality, or any other known workarounds?
This was solved in the Customer support hours with the use of the split() of the input.
Examplewise with the search phrase that returns a comma separated list of customers with their relationships:
WITH $customerNumberListString AS content
WITH [i IN SPLIT(content, ",") | TOINTEGER(trim(i))] AS values
MATCH (n:Entity)
WHERE n.CustomerNumber IN values
with collect(id(n)) as nodes
CALL apoc.algo.cover(nodes)
YIELD rel
RETURN startNode(rel), rel, endNode(rel);