问题
I've opened the neo4j browser and tried to run the following query:
:params {"uidLeft": "asdf1", "uidRight": "asdf2", "type": "KNOWS", props:{uid:"rel1"}}
And I get the following error:
Could not parse input. Usage:
:param "x": 2
. SyntaxError: Expected ",", "}" or key but "{" found.
Are nested properties supposed to be supported?
Here's a screenshot:
回答1:
Try removing the outer parenthesis, that shouldn't be needed:
:params "uidLeft": "asdf1", "uidRight": "asdf2", "type": "KNOWS", props:{uid:"rel1"}
回答2:
This seems to be a bug in Neo4j Browser 3.0.5, the version that are shipped with Neo4j 3.2.2 and 3.2.3.
Running the following command (with outer parenthesis) in Neo4j Browser 3.0.4 (Neo4j 3.2.1) all works fine:
:params {"uidLeft": "asdf1", "uidRight": "asdf2", "type": "KNOWS", props:{uid:"rel1"}}
But the command indicated by @InverseFalcon (without outer parenthesis) don't work for Neo4j Browser 3.0.4 (Neo4j 3.2.1), only for Neo4j Browser 3.0.5:
:params "uidLeft": "asdf1", "uidRight": "asdf2", "type": "KNOWS", props:{uid:"rel1"}
I opened an issue in the Neo4j Browser repo.
来源:https://stackoverflow.com/questions/46244571/unable-to-set-nested-parameters-through-the-neo4j-browser-with-version-3-2-2