I searched and tested several hours and solved it like this:
:param jsontype : {akey:'avalue'}
Hey guys please!
I searched and tested several hours and solved it like this:
:param jsontype : {akey:'avalue'}
Hey guys please!
Hi, Do you have a question, or are you indicating documentation somewhere needs to be updated? (I don't see a reference/url)
Yea, I mean if it's really working with ":" not with "=>" then you must notify this important syntax correctly in the manual of the product which we sell to customers for million dollars.
After a little digging on parameters, I can confirm a few things
:param variableName => 'simple value'
works as documented (simple data e.g. integer, string, float):param variableName => {mapStructureData: 'test'}
does not work (for maps):param variableName : {complexMap: 'test'}
does appear to work (with maps) However, if this is the correct syntax to use, I could not find it anywhere in the documentation, or in community discussions. (though there are a few interesting discussions)Notes:
The old parameter syntax
{param}
was deprecated in Neo4j 3.0 and removed entirely in Neo4j 4.0. Using it will result in a syntax error. However, it is still possible to use it, with warnings, if you prefix the query withCYPHER 3.5
. See Cypher Compatibility for further information.
Thank you for your effort about this matter. Neo4j must handle this.