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 - apoc.periodic.iterate - Using split function

Hello,

I was wondering if it is possible to call the 'split' function or 'apoc.text.split' inside an apoc.periodic.iterate.

When using either split function, we get the following error:

mattfrisbee_0-1664216228818.png

For our application, we are creating nodes via Java & APOC and need to set property values as lists. They are currently being stored as Strings such as "["val1","val2"]". Is there a way to utilize either split function or another alternative for our use case? Thank you so much!

 

1 ACCEPTED SOLUTION

Use single quotes to enclose both query strings.  You are getting the issue because the double quotes around the comma 

View solution in original post

3 REPLIES 3

Use single quotes to enclose both query strings.  You are getting the issue because the double quotes around the comma 

Thank you so much, this fixed our issue! I really appreciate it!

Nodes 2022
Nodes
NODES 2022, Neo4j Online Education Summit

All the sessions of the conference are now available online