You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm looking to iterate over a collection of objects with the .net neo4j client. Currently I pass a collectino in with unwind. ForEach only takes a string. How can I pass an array into ForEach?
The text was updated successfully, but these errors were encountered:
I've answered on the Stack Overflow - and copying here. It'd probably be a good PR if you want to have a go at it?
//From Stack Overflow
You can't, and (despite the other question) I don't think you've ever been able to. I can't find that overload anywhere in the codebase, even in April 2016 it doesn't seem to be there.
The only way at the moment would be to do:
var myArray = new [] {1,2,3};
client.Cypher
.ForEach("(val IN $myParam | ...)")
.WithParam("myParam", myArray)
/// etc
I'm looking to iterate over a collection of objects with the .net neo4j client. Currently I pass a collectino in with unwind. ForEach only takes a string. How can I pass an array into ForEach?
The text was updated successfully, but these errors were encountered: