neo4j: What is the syntax to set cypher query parameters in the browser interface?

前端 未结 4 2020
广开言路
广开言路 2020-12-09 02:21

I am trying to run queries from the neo4j browser to reproduce results from my neo4j-javascript-driver client.

What is the syntax for defining query parameters in th

4条回答
  •  南笙
    南笙 (楼主)
    2020-12-09 02:50

    In neo4j-browser you need type for example:

    :params {nodes: [{name: "John", age: 18}, {name: "Phill", age: 23}]}
    

    Then you can use params as usual:

    UNWIND {nodes} as node
    MERGE (A:User {name: node.name, age: node.age})
    RETURN A
    

    For clear params in neo4j-browser type :params {}.

    For additional help type :help params.

提交回复
热议问题