cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

Apoc.coll.intersection and apoc.coll.set

pavloN
Node Clone

HI!
When I try to use apoc.coll.intersection, it doesn`t work. I see the error: there isn't such procedure.
But apoc.coll.set works correctly.
version - 3.5.0.4
Added to conf file:
dbms.security.procedures.unrestricted=apoc*
I see this issue on Windows and Linux
Could I fix this?

1 ACCEPTED SOLUTION

apoc.coll.intersection() is a function, not a procedure, so you won't use the CALL ... YIELD syntax.

An example that should work for you:

RETURN apoc.coll.intersection([1,2,3,4,5], [3,5,9])

View solution in original post

2 REPLIES 2

What exact statement causes the error?

apoc.coll.intersection() is a function, not a procedure, so you won't use the CALL ... YIELD syntax.

An example that should work for you:

RETURN apoc.coll.intersection([1,2,3,4,5], [3,5,9])
Nodes 2022
Nodes
NODES 2022, Neo4j Online Education Summit

All the sessions of the conference are now available online