我们如何在一个密码中将标签从一个节点复制到另一个节点? [英] How can we copy labels from one node to another in one cypher?

查看:99
本文介绍了我们如何在一个密码中将标签从一个节点复制到另一个节点?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问题与标题相同,而cypher语句也与以下内容相同:

Match (n: test) CREATE (copy : LABELS(n)) set copy = n

其目的是创建一个具有与另一个节点相同的属性和相同标签的节点,但是现在不起作用,因为我们不能使用像LABELS(n)这样的表达式来将lobel设置为一个节点.

我如何使它工作?

解决方案

不幸的是,当前不能直接从数据值中设置标签.

The question is just as the title, and the cypher statement is just like the follow:

Match (n: test) CREATE (copy : LABELS(n)) set copy = n

Its purpose is to create a node with the same properties and same labels as the other node, but it doesn't work now because we cannot use a expression like LABELS(n) to set lobel to a node.

How can I make it work?

解决方案

Unfortunately, labels currently cannot be set directly from data values.

这篇关于我们如何在一个密码中将标签从一个节点复制到另一个节点?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆