问题
Is it possible to add a label to a new node in Neo4j using parameters?
For example:
CREATE (N){nodeLabel}
With parameters:
nodeLabel = "Widget"
I've attempted to do this but have only seen exceptions.
回答1:
Currently labels cannot be parameterized. Feel free to file a feature request on https://github.com/neo4j/neo4j/issues/new.
回答2:
In short - no. See also this post on Google Groups where I have a poor workaround (for Java/SDN anyway).
Whoo hoo, issue 2000 created to request this feature
来源:https://stackoverflow.com/questions/21834113/parameterizing-labels