A. L
A. L

Reputation: 12649

creating map/object parameter in cypher

I'm trying to create a parameter in the cypher console with the following command:

:param props => { status: "closed" }

However, it's throwing me the error

enter image description here

Is it possible to create a map/object in the cypher console?

https://neo4j.com/docs/cypher-manual/current/syntax/parameters/#cypher-parameters-create-node-with-properties

indicates that it can

Upvotes: 0

Views: 614

Answers (1)

Graphileon
Graphileon

Reputation: 5385

In Neo4j Desktop 1.2.9 with Neo4j 4.0.4 it works enter image description here

But in other versions, you may try

:param props: {status:"closed"}

or

:param props: {"status":"closed"}

the latter being the equivalent of what is said in the manual you refer to.

Upvotes: 2

Related Questions