cancel
Showing results for 
Search instead for 
Did you mean: 

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

glilienfield
Ninja
Ninja

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

glilienfield
Ninja
Ninja

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

On November 16 and 17 for 24 hours across all timezones, you’ll learn about best practices for beginners and experts alike.