apoc.schema 限定名称 类型 apoc.schema.assert apoc.schema.assert(indexes MAP<STRING, LIST<ANY>>, constraints MAP<STRING, LIST<ANY>>, dropExisting BOOLEAN) - 当 dropExisting 为 true 时(默认为 true),删除所有其他现有索引和约束。在操作结束时断言给定的索引和唯一约束存在。 过程 apoc.schema.nodes apoc.schema.nodes(config MAP<STRING, ANY>) - 返回数据库中所有 NODE 标签的索引和约束信息。可以在配置参数中定义要包含或排除的标签集。 过程 apoc.schema.properties.distinct apoc.schema.properties.distinct(label STRING, key STRING) - 返回给定键的所有不重复 NODE 属性值。 过程 apoc.schema.properties.distinctCount apoc.schema.properties.distinctCount(label STRING, key STRING) - 返回给定键的所有不重复属性值和计数。 过程 apoc.schema.relationships apoc.schema.relationships(config MAP<STRING, ANY>) - 返回数据库中所有关系类型的索引和约束信息。可以在配置参数中定义要包含或排除的关系类型集。 过程 apoc.schema.node.constraintExists apoc.schema.node.constraintExists(labelName STRING, propertyName LIST<STRING>) - 根据给定 NODE 标签是否具有给定属性名称的约束而返回 BOOLEAN 值。 函数 apoc.schema.node.indexExists apoc.schema.node.indexExists(labelName STRING, propertyName LIST<STRING>) - 根据给定 NODE 标签是否具有给定属性名称的索引而返回 BOOLEAN 值。 函数 apoc.schema.relationship.constraintExists apoc.schema.relationship.constraintExists(type STRING, propertyName LIST<STRING>) - 根据给定 RELATIONSHIP 类型是否具有给定属性名称的约束而返回 BOOLEAN 值。 函数 apoc.schema.relationship.indexExists apoc.schema.relationship.indexExists(type STRING, propertyName LIST<STRING>) - 根据给定 RELATIONSHIP 类型是否具有给定属性名称的索引而返回 BOOLEAN 值。 函数 apoc.rel.type apoc.schema.assert