Reputation: 1366
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.
Upvotes: 2
Views: 172
Reputation: 1108
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
Upvotes: 1
Reputation: 39915
Currently labels cannot be parameterized. Feel free to file a feature request on https://github.com/neo4j/neo4j/issues/new.
Upvotes: 3