my python code to create a node is
results=_session.run( 'CALL apoc.cypher.run("merge (s:SHOT:$videoshot) return s", {'videoshot': 'Matrix'}' )
Want to create a Node with multiple labels, one of the labels is computed. running the above code gives the following error:
create shot exception {code: Neo.ClientError.Statement.SyntaxError} {message: Invalid input '{': expected "+" or "-" (line 1, column 60 (offset: 59))
"CALL apoc.cypher.run("merge (s:SHOT:$videoshot) return s", {'videoshot': 'Matrix'}) - call apoc with params substitution is not working" ^
I am using apoc.cypher.run() since I found out that regular cypher does not support dynamic node labels. software version I am using are:
python driver version neo4j==4.3.5
python 3.8
OS - ubuntu 20.04
help would be much appreciated.