1

What is the syntax for passing a parameter to a Cypher query when using the Neo4j Browser?

Specifically, how would you pass a list of dictionaries to execute example 3.3.6.4 from the documentation in the neo4j browser?

Bruno Peres
  • 15,845
  • 5
  • 53
  • 89
Jan Mattsson
  • 154
  • 2
  • 9
  • 1
    Are you looking for what is explained in :help params ? – Tom Geudens May 08 '17 at 13:47
  • Yes, that's it. Thanks! – Jan Mattsson May 08 '17 at 13:50
  • Possible duplicate of [neo4j: What is the syntax to set cypher query parameters in the browser interface?](https://stackoverflow.com/questions/42397773/neo4j-what-is-the-syntax-to-set-cypher-query-parameters-in-the-browser-interfac) – kwah Apr 21 '18 at 01:37

1 Answers1

3

As @TomGeudens indicated, you can use :help param and :help params in the neo4j browser to see the relevant browser commands.

In your specific example, you can use this browser command to create the $events parameter:

:param events: [{year: 2014, id: 1}, {year: 2014, id: 2}]
cybersam
  • 63,203
  • 6
  • 53
  • 76