Unable to set nested parameters through the neo4j browser with version 3.2.2

拥有回忆 提交于 2020-01-05 07:17:09

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!