Tim Ferrell
Tim Ferrell

Reputation: 1366

Parameterizing labels

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

Answers (2)

Mike Holdsworth
Mike Holdsworth

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

Stefan Armbruster
Stefan Armbruster

Reputation: 39915

Currently labels cannot be parameterized. Feel free to file a feature request on https://github.com/neo4j/neo4j/issues/new.

Upvotes: 3

Related Questions