apoc.uuid.remove
存储过程 Apoc Extended 已弃用
CALL apoc.uuid.remove(label) yield label, installed, properties | 移除之前添加的 uuid 处理程序并返回 uuid 信息。所有现有的 uuid 属性将保持原样
签名
apoc.uuid.remove(label :: STRING?) :: (label :: STRING?, installed :: BOOLEAN?, properties :: MAP?)
|
请注意,此存储过程已弃用。 请改用以下存储过程,它们在集群中提供更好的支持
其中 |
|
此过程不适用于集群环境,使用时可能会出现不可预期的行为。 |
启用自动 UUID
此存储过程属于一组通过 UUID 处理程序生命周期处理自动添加 UUID 属性的存储过程。UUID 处理程序是一个事务事件处理程序,它会自动为提供的标签和属性名称添加 UUID 属性。
默认情况下,自动添加 UUID 是禁用的。我们可以通过在 apoc.conf 中设置以下属性来启用它
apoc.conf
apoc.uuid.enabled=true
使用示例
我们可以通过运行以下查询来移除 UUID 处理程序(由 apoc.uuid.install 安装):
CALL apoc.uuid.remove("Person");
| 标签 (label) | installed | 属性 |
|---|---|---|
"Person" |
FALSE |
{uuidProperty: "myUUID"} |
如果我们尝试移除一个不存在的 UUID 处理程序,输出将指示没有安装此类处理程序
CALL apoc.uuid.remove("Foo");
| 标签 (label) | installed | 属性 |
|---|---|---|
NULL |
FALSE |
{} |