got another problem now. I'd like to create a working HTML form where user can enter name of the node, and through radioboxes to choose the label - and after submit it is created in neo4j.
Following works:
result = graph.cypher.execute("CREATE (n:Test { name : '%s' })" % cypher_escape(node))
So now I am able to create a node with whatever name I enter, but I can't get the label to work. From the documentation I know that cypher_escape
can be used only with 1 argument and that labels cannot be parametrised.
Is there some workaround / other way to do it so I can put variable as a label to the cypher query ?
Thanks in advance ! :)