I'd like to pass multiple parameters to the Neo4j 4.0 browser while making sure that the type of the parameter values (int, date) is interpreted correctly. I tried using the syntax of the Cypher shell commands:
Using the colon syntax
paramName: paramValueallows passing multiple parameters but their type is implicitly converted (date to string, integer to float)::param d: date('2020-03-07'), x: 1Result:
{ "d": "date('2020-03-07')", "x": 1.0 }Using the arrow syntax, I can define the both parameters correctly but it requires separate
:paramcommands::param d => date('2020-03-07') :param x => 1 :paramsResult:
{ "d": "2020-03-07", "x": 1 }
Many of my queries use a large number of parameters -- it there a way to pass all parameters correctly using a single command?
(There is a related question, neo4j: What is the syntax to set cypher query parameters in the browser interface?, however, answers do not consider the issues regarding types.)