In order to find an intersection of two arrays, I use the following APOC call:
apoc.coll.intersection($detailedCriterionIds, childD.detailedCriterionIds)
Could you please show how to implement the same with pure Cypher without APOC help? Thanks!
In order to find an intersection of two arrays, I use the following APOC call:
apoc.coll.intersection($detailedCriterionIds, childD.detailedCriterionIds)
Could you please show how to implement the same with pure Cypher without APOC help? Thanks!
You can use list comprehension.
In this example, you iterate over all elements in
list1and only keep those elements that are also inlist2