Parameterizing labels

杀马特。学长 韩版系。学妹 提交于 2019-12-11 03:19:34

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!