I need to organize into the subsequent chain (1..N
calls) of apoc.index.in
function, something like this:
MATCH (d:Decision)-[:HAS_VALUE_ON]->(ch:Characteristic) WHERE ch.id = 10
CALL apoc.index.in(ch,'HAS_VALUE_ON','property.2.5:7 AND value:45') YIELD node AS decision
MATCH (decision)-[:HAS_VALUE_ON]->(ch:Characteristic) WHERE ch.id = 23
CALL apoc.index.in(ch,'HAS_VALUE_ON','property.1.8:326 OR property.4:17') YIELD node AS decision
MATCH (decision)-[:HAS_VALUE_ON]->(ch:Characteristic) WHERE ch.id = 19
CALL apoc.index.in(ch,'HAS_VALUE_ON','property.15.3:"mike" OR value:43') YIELD node AS decision
RETURN decision
As you may see I need to filter the set of Decision
based on different conditions described at apoc.index.in, for example like 'property.15.3:"mike" OR value:43'
and so on.
Right now the query above doesn't work. Is it possible with APOC to chain it and if so, could you please show an example.