You need to pass a dictionary with a key of "values" and your list as value.

On Tue, Aug 8, 2017 at 9:12 AM, <emmanuel.ouanou...@checkmarx.com> wrote:

> Hi,
>
> I have a query running something like this:
>
> WITH $values as values
> MATCH (n:Node)
> WHERE node.value in values
>
> How can I pass a list of values in $values using C#?
>
> I have tried something like this but it doesn't work:
> var records = session.Run("WITH $values as values MATCH (n:Node), WHERE
> node.value in values", new { values } );
> Where values is a C# list of integers.
>
> Thanks,
>
> --
> You received this message because you are subscribed to the Google Groups
> "Neo4j" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to neo4j+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to neo4j+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to