cancel
Showing results for 
Search instead for 
Did you mean: 

How to include list parameters in http-api?

Hello, reading the docs: https://neo4j.com/docs/http-api/current/actions/query-result/ suggest that the JSON array type is supported by the http-api. But when I try this, I get the error "Type mismatch for parameter 'gparams': expected List but was String"

{
    "statements": [
        {
            "statement": "MATCH (s:SLabel)-[]-(g:GLabel) WHERE s.name IN $gparams WITH s, g MATCH (g)-[:HAS_BLAH]-(t:TLabel)-[:HAS_PARENT*0..2]->(p) where p.id in $moreparams ...",
            "parameters": {
                "gparams": ["foo"],
                "moreparams": ["bar", "nut"]
            }
        }
    ]
}

I believe everything looks correct. Any help would be appreciated.

1 REPLY 1

jggomez
Graph Voyager

Hi, Could you try with the attribute props?

Thanks