Hi,
How can I iterate through an array of strings and do something using the string?
My use case is, there are nodes called companies which contains an array of employees' user id's. For example a company may look like {name: "fantastic company", employees: ["joe1234534", "jan223434", ...] }
For performance considerations, I'm loading to neo4j the company nodes and employee nodes separately in batch. And then I want to iterate through the 'employees' array in each company node and make the relationships: company-[:HIRES]->employee.
But although there is a FOREACH operator, I don't see how it can be used for this purpose. Or do I need to use something else?
Thanks.