用法

用户定义的函数可以像内置函数一样,用于任何表达式或谓词中。

过程可以通过 CALL procedure.name(); 独立调用。

但你也可以将它们集成到 Cypher 语句中,这使得它们的功能更加强大。

加载 JSON 示例
WITH 'https://raw.githubusercontent.com/neo4j-contrib/neo4j-apoc-procedures/4.0/src/test/resources/person.json' AS url

CALL apoc.load.json(url) YIELD value as person

MERGE (p:Person {name:person.name})
   ON CREATE SET p.age = person.age, p.children = size(person.children)
© . This site is unofficial and not affiliated with Neo4j, Inc.