From 4a8211570170307c8150f7384a73f2a09421d692 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jens=20Pryce-=C3=85klundh?= <112686610+JPryce-Aklundh@users.noreply.github.com> Date: Tue, 29 Sep 2026 16:02:36 +0200 Subject: [PATCH 1/4] add note about Cypher local callables --- .../extending-neo4j/user-defined-procedures-functions.adoc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/ROOT/pages/extending-neo4j/user-defined-procedures-functions.adoc b/modules/ROOT/pages/extending-neo4j/user-defined-procedures-functions.adoc index dfe7a1a..d9db75f 100644 --- a/modules/ROOT/pages/extending-neo4j/user-defined-procedures-functions.adoc +++ b/modules/ROOT/pages/extending-neo4j/user-defined-procedures-functions.adoc @@ -10,6 +10,10 @@ Defining procedures and functions enables you to extend Neo4j by writing customized code, which can be invoked directly from Cypher. Procedures and functions can take arguments, perform operations on the database, and return results. +[NOTE] +As of Neo4j yyyy.mm and Cypher 25, query local functions and procedures can be defined with the `DEFINE` clause. +For more information, see the link:{neo4j-docs-base-uri}/cypher-manual/current/clauses/define/[Cypher Manual -> `DEFINE`]. + * _User-defined procedures_ are the most powerful form of customization, allowing you to perform complex operations and return multiple results. * _User-defined functions_ are simpler forms of procedures that return a single value and are read-only. Although they are less powerful in capability, they are often easier to use and more efficient than procedures for many common tasks. From 4888d0762edc4bab43d34759c83738cd9f374e10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jens=20Pryce-=C3=85klundh?= <112686610+JPryce-Aklundh@users.noreply.github.com> Date: Wed, 30 Sep 2026 15:27:46 +0200 Subject: [PATCH 2/4] Apply batched suggestions from code review Co-authored-by: Reneta Popova --- .../extending-neo4j/user-defined-procedures-functions.adoc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/ROOT/pages/extending-neo4j/user-defined-procedures-functions.adoc b/modules/ROOT/pages/extending-neo4j/user-defined-procedures-functions.adoc index d9db75f..33233b0 100644 --- a/modules/ROOT/pages/extending-neo4j/user-defined-procedures-functions.adoc +++ b/modules/ROOT/pages/extending-neo4j/user-defined-procedures-functions.adoc @@ -11,7 +11,10 @@ Defining procedures and functions enables you to extend Neo4j by writing customi Procedures and functions can take arguments, perform operations on the database, and return results. [NOTE] -As of Neo4j yyyy.mm and Cypher 25, query local functions and procedures can be defined with the `DEFINE` clause. +==== +Starting with Neo4j yyyy.mm, in Cypher 25, you can define procedures and functions within a query using the Cypher clause `DEFINE`. +You can only call them locally and within the scope of the query in which they are defined. +==== For more information, see the link:{neo4j-docs-base-uri}/cypher-manual/current/clauses/define/[Cypher Manual -> `DEFINE`]. * _User-defined procedures_ are the most powerful form of customization, allowing you to perform complex operations and return multiple results. From b1c2aeb8b35b426e0ef5250ba05112f69e967ac8 Mon Sep 17 00:00:00 2001 From: Reneta Popova Date: Wed, 30 Sep 2026 14:42:06 +0100 Subject: [PATCH 3/4] Apply suggestion from @renetapopova --- .../pages/extending-neo4j/user-defined-procedures-functions.adoc | 1 - 1 file changed, 1 deletion(-) diff --git a/modules/ROOT/pages/extending-neo4j/user-defined-procedures-functions.adoc b/modules/ROOT/pages/extending-neo4j/user-defined-procedures-functions.adoc index 33233b0..5626fca 100644 --- a/modules/ROOT/pages/extending-neo4j/user-defined-procedures-functions.adoc +++ b/modules/ROOT/pages/extending-neo4j/user-defined-procedures-functions.adoc @@ -14,7 +14,6 @@ Procedures and functions can take arguments, perform operations on the database, ==== Starting with Neo4j yyyy.mm, in Cypher 25, you can define procedures and functions within a query using the Cypher clause `DEFINE`. You can only call them locally and within the scope of the query in which they are defined. -==== For more information, see the link:{neo4j-docs-base-uri}/cypher-manual/current/clauses/define/[Cypher Manual -> `DEFINE`]. * _User-defined procedures_ are the most powerful form of customization, allowing you to perform complex operations and return multiple results. From f621d6c8f5ff2d086bd07f8798c9c9d390ea12de Mon Sep 17 00:00:00 2001 From: Reneta Popova Date: Wed, 30 Sep 2026 14:42:15 +0100 Subject: [PATCH 4/4] Apply suggestion from @renetapopova --- .../pages/extending-neo4j/user-defined-procedures-functions.adoc | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/ROOT/pages/extending-neo4j/user-defined-procedures-functions.adoc b/modules/ROOT/pages/extending-neo4j/user-defined-procedures-functions.adoc index 5626fca..61a8280 100644 --- a/modules/ROOT/pages/extending-neo4j/user-defined-procedures-functions.adoc +++ b/modules/ROOT/pages/extending-neo4j/user-defined-procedures-functions.adoc @@ -15,6 +15,7 @@ Procedures and functions can take arguments, perform operations on the database, Starting with Neo4j yyyy.mm, in Cypher 25, you can define procedures and functions within a query using the Cypher clause `DEFINE`. You can only call them locally and within the scope of the query in which they are defined. For more information, see the link:{neo4j-docs-base-uri}/cypher-manual/current/clauses/define/[Cypher Manual -> `DEFINE`]. +==== * _User-defined procedures_ are the most powerful form of customization, allowing you to perform complex operations and return multiple results. * _User-defined functions_ are simpler forms of procedures that return a single value and are read-only.