Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
01-29-2020 04:25 AM
neobolt.exceptions.CypherSyntaxError: Parameter maps cannot be used in MATCH patterns (use a literal map instead, eg. "{id: {param}.id}") (line 1, column 13 (offset: 12))
"MATCH (node { properties })"
what is the reason for that? is it a python bolt driver limitations or a bolt protocol limitation?
01-29-2020 05:28 AM
Can you use the parameter map on the Neo4j desktop? If it doesn't work there, then it's something Neo4j specific. But it doesn't seem like it would be hard to just turn your map in to a dict and use it the way it's suggesting.
01-29-2020 06:48 AM
That's what I ended up doing, with a little method to make the literal map string, so are paramater maps in MATCH queries not in the cypher spec, or is it not implemented by the python bolt driver?
01-29-2020 06:50 AM
I'm pretty sure it's just not implemented in the cypher spec. There's probably an APOC procedure for it. The bolt driver is pretty agnostic.
04-22-2020 09:43 AM
Can you try "MATCH (node properties)"? I think the parenthesis are already part of parameter so you dont have to add them to the query.
I'm not sure if it will work with MATCHing, but it definetly works with node creating (CREATE (n:SomeLabel $parameters)
)
All the sessions of the conference are now available online