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!
Copyright © 2021 Jogjafile Inc.
You can use list comprehension.
In this example, you iterate over all elements in
list1and only keep those elements that are also inlist2