So if I want to do with with foreach, any suggestions for how to group the paramaters?
From what I can tell, I could group all the properties for a node in an array like:
PROPS : [[1,1,1],[2,2,2],[3,3,3]]
then: FOREACH( x in {PROPS} : set n.test = HEAD(TAIL(x)) )
but the problem is that I can't seem to chain head and tail properly to pull out x[1] (head and last by themselves work fine though). I can't pass an array of objects in params because cypher won't let me use dot notation so...
I'm thinking this foreach thing is more trouble than it's worth, probably just going to go back to building queries by adding strings onto the end of each part of the query.
-Mat