Neo4j: caching options in the web interface

Is it possible to pass parameters along with a cypher request through the Neo4j web interface or shell? For example, is it possible to run the Neo4j web interface to fulfill this statement?

return {test};

Running this statement in the web interface results in an error:

Expected a parameter named test
Neo.ClientError.Statement.ParameterMissing

Ideally, I would like to do something like:

{ test: "foo" } // specify the parameters I would normally pass via the REST API

// my normal query
return {test};

Is there any way to do this? I want to do this because I use the REST API on Neo4j and all my requests accept parameters. If I want to test any of my queries in a web interface or shell, I need to manually edit the query to replace the markup with {parameter}declarations withor with the original input. I would like to be able to simply copy / paste my request as is into the web interface, provide a set of parameters and make it work.

- , ?

+4
1

"" .

:

export test="foo"
return {test} as t;
+-------+
| t     |
+-------+
| "foo" |
+-------+

env

, , , , tampermonkey/chrome plugin.

+5

All Articles