cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

Multiple parameters in CLI cypher-script

d0naka02
Node Link

Neo4j 3.5.22
Cypher-Shell 1.1.13

I am running multiple queries that require one or more parameters using scripts, against large datasets and using cypher-shell.

Queries that require a single parameter run fine with this command:

{ echo ":param param_name=>param_val" ; cat example.cypher; } | /bin/cypher-shell -u neo4j -p pass

My attempt to pass multiple parameters returns no output and no errors. Here is the command I use:

{ echo ":param param1=>param1_val :param param2=>param2_val" ; cat example.cypher; } | /bin/cypher-shell -u neo4j -p pass

I have not found any approach that addresses passing multiple params.

Am I missing something?

1 REPLY 1

d0naka02
Node Link

I finally got this to work with a minor change.
If anyone runs into a similar issue, the following command is working fine for me:

{ echo ":param param1=>param1_val" ; echo ":param param2=>param2_val"; cat example.cypher ; } | bin/cypher-shell -u neo4j -p pass