Skip to content

Commit 4738b73

Browse files
Merge branch 'cypher-25' into cypher_25_yml_readme_updates
2 parents 8d38109 + eeb8ba4 commit 4738b73

File tree

80 files changed

+3039
-4030
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+3039
-4030
lines changed

modules/ROOT/content-nav.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@
9494
** xref:indexes/syntax.adoc[]
9595
9696
* xref:constraints/index.adoc[]
97+
** xref:constraints/managing-constraints.adoc[]
9798
** xref:constraints/syntax.adoc[]
98-
** xref:constraints/examples.adoc[]
9999
100100
* xref:planning-and-tuning/index.adoc[]
101101
** xref:planning-and-tuning/execution-plans.adoc[]

modules/ROOT/images/graph_match_clause.svg

Lines changed: 1 addition & 1 deletion
Loading

modules/ROOT/pages/appendix/gql-conformance/additional-cypher.adoc

Lines changed: 11 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,9 @@ Either the pattern already exists, or it needs to be created.
301301
| Returns a 2D or 3D point object, given two or respectively three coordinate values in the Cartesian coordinate system or WGS 84 geographic coordinate system.
302302

303303
| xref:functions/spatial.adoc#functions-point-distance[`point.distance()`]
304-
| Returns a `FLOAT` representing the geodesic distance between any two points in the same CRS.
304+
| Returns a `FLOAT` representing the distance between any two points in the same CRS.
305+
If the points are in the WGS 84 CRS, the function returns the geodesic distance (i.e., the shortest path along the curved surface of the Earth).
306+
If the points are in a Cartesian CRS, the function returns the Euclidean distance (i.e., the shortest straight-line distance in a flat, planar space).
305307

306308
| xref:functions/spatial.adoc#functions-point-withinBBox[`point.withinBBox()`]
307309
| Returns true if the provided point is within the bounding box defined by the two provided points.
@@ -507,29 +509,17 @@ GQL supports `GRAPH TYPES` as a way of constraining a graph schema, but does not
507509
| Cypher feature
508510
| Description
509511

510-
| xref:constraints/examples.adoc#constraints-examples-node-uniqueness[Node property uniqueness constraints]
511-
| Ensures that certain nodes have a set of specified properties whose combined value is unique when all properties exist on the node
512+
| xref:constraints/managing-constraints.adoc#create-property-uniqueness-constraints[Property uniqueness constraints]
513+
| Ensures that the combined property values are unique for all nodes with a specific label or all relationships with a specific type.
512514

513-
| xref:constraints/examples.adoc#constraints-examples-relationship-uniqueness[Relationship property uniqueness constraints]
514-
| Ensures that certain relationships have a set of specified properties whose combined value is unique when all properties exist on the relationship.
515+
| xref:constraints/managing-constraints.adoc#create-property-existence-constraints[Property existence constraints]
516+
| Ensures that a property exists either for all nodes with a specific label or for all relationships with a specific type.
515517

516-
| xref:constraints/examples.adoc#constraints-examples-node-property-existence[Node property existence constraints]
517-
| Ensures that certain nodes have a specified property.
518+
| xref:constraints/managing-constraints.adoc#create-property-type-constraints[Property type constraints]
519+
| Ensures that a property has the required property type for all nodes with a specific label or for all relationships with a specific type.
518520

519-
| xref:constraints/examples.adoc#constraints-examples-relationship-property-existence[Relationship property existence constraints]
520-
| Ensures that certain relationships have a specified property.
521-
522-
| xref:constraints/examples.adoc#constraints-examples-node-property-type[Node property type constraints]
523-
| Ensures that certain nodes have a property of the required property type when the property exists on the node.
524-
525-
| xref:constraints/examples.adoc#constraints-examples-relationship-property-type[Relationship property type constraints]
526-
| Ensures that certain relationships have a property of the required property type when the property exists on the relationship.
527-
528-
| xref:constraints/examples.adoc#constraints-examples-node-key[Node key constraints]
529-
| Ensures that certain nodes have a set of specified properties whose combined value is unique and all properties in the set are present.
530-
531-
| xref:constraints/examples.adoc#constraints-examples-relationship-key[Relationship key constraints]
532-
| Ensures that certain relationships have a set of defined properties whose combined value is unique. It also ensures that all properties in the set are present.
521+
| xref:constraints/managing-constraints.adoc#create-key-constraints[Key constraints]
522+
| Ensures that all properties exist and that the combined property values are unique for all nodes with a specific label or all relationships with a specific type.
533523

534524
|===
535525

modules/ROOT/pages/appendix/gql-conformance/index.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
:description: Overview of Cypher's conformance to GQL.
22
= GQL conformance
33

4-
*Last updated*: 13 September 2024 +
5-
*Neo4j version*: 5.24
4+
*Last updated*: 24 October 2024 +
5+
*Neo4j version*: 5.25
66

77
GQL is the new link:https://www.iso.org/home.html[ISO] International Standard query language for graph databases.
88

modules/ROOT/pages/appendix/gql-conformance/supported-optional.adoc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,11 @@ These codes order the features in the table below.
9393
| xref:patterns/reference.adoc#graph-patterns-rules-variable-references[Graph patterns -> Rules]
9494
|
9595

96+
| GB01
97+
| Long identifiers
98+
| xref:syntax/naming.adoc#identifier-length-limit[Naming rules and recommendations -> Identifier length limit]
99+
|
100+
96101
| GF01
97102
| Enhanced numeric functions
98103
| xref:functions/mathematical-numeric.adoc#functions-abs[`abs()`], xref:functions/mathematical-numeric.adoc#functions-floor[`floor()`], xref:functions/mathematical-logarithmic.adoc#functions-sqrt[`sqrt()`].

modules/ROOT/pages/appendix/tutorials/advanced-query-tuning.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Let's explain how to use these features with a more advanced query tuning exampl
1515

1616
[NOTE]
1717
====
18-
If you are upgrading an existing store to {neo4j-version-exact}, it may be necessary to drop and re-create existing indexes.
18+
If you are upgrading an existing store, it may be necessary to drop and re-create existing indexes.
1919
For information on native index support and upgrade considerations regarding indexes, see link:{neo4j-docs-base-uri}/operations-manual/{page-version}/performance/index-configuration[Operations Manual -> Performance -> Index configuration].
2020
====
2121

@@ -936,10 +936,10 @@ Predicates that will not work:
936936

937937
[NOTE]
938938
====
939-
If there is an existence constraint on the property, no predicate is required to trigger the optimization.
939+
If there is a xref:constraints/managing-constraints.adoc#create-property-existence-constraints[property existence constraint] on the property, no predicate is required to trigger the optimization.
940940
For example, `CREATE CONSTRAINT constraint_name FOR (p:Person) REQUIRE p.name IS NOT NULL`
941941
942-
As of Neo4j {neo4j-version-exact}, predicates with parameters, such as `WHERE n.prop > $param`, can trigger _index-backed ORDER BY_.
942+
Predicates with parameters, such as `WHERE n.prop > $param`, can trigger _index-backed ORDER BY_.
943943
The only exception are queries with parameters of type `POINT`.
944944
====
945945

modules/ROOT/pages/clauses/call.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ A `VOID` procedure is a procedure that does not declare any result fields and re
259259
`VOID` procedure only produces side-effects and does not allow for the use of `YIELD`.
260260
Calling a `VOID` procedure in the middle of a larger query will simply pass on each input record (i.e., it acts like xref:clauses/with.adoc[`WITH *`] in terms of the record stream).
261261

262-
[role=label--new-5.24]
262+
263263
[[optional-call]]
264264
== Optional procedure calls
265265

modules/ROOT/pages/clauses/clause-composition.adoc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -573,8 +573,7 @@ Later invocations of the subquery can observe writes made by earlier invocations
573573
Using the same example graph as above, this example shows the table of intermediate results and the state of the graph after each clause for the following query:
574574
575575
[NOTE]
576-
The below query uses a xref:subqueries/call-subquery.adoc#variable-scope-clause[variable scope clause] (introduced in Neo4j 5.23) to import variables into the `CALL` subquery.
577-
If you are using an older version of Neo4j, use an xref:subqueries/call-subquery.adoc#importing-with[importing `WITH` clause] instead.
576+
The below query uses a xref:subqueries/call-subquery.adoc#variable-scope-clause[variable scope clause] to import variables into the `CALL` subquery.
578577
579578
[source,cypher]
580579
----

modules/ROOT/pages/clauses/create.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Multiple labels are separated by colons.
2323
CREATE (charlie:Person:Actor {name: 'Charlie Sheen'}), (oliver:Person:Director {name: 'Oliver Stone'})
2424
----
2525

26-
As of Neo4j 5.18, multiple labels can also be separated by an ampersand `&`, in the same manner as it is used in xref:patterns/reference.adoc#label-expressions[label expressions].
26+
Multiple labels can also be separated by an ampersand `&`, in the same manner as it is used in xref:patterns/reference.adoc#label-expressions[label expressions].
2727
Separation by colon `:` and ampersand `&` cannot be mixed in the same clause.
2828

2929
.Query
@@ -205,7 +205,7 @@ Nodes created: 2 +
205205
Properties set: 4
206206
|===
207207

208-
[role=label--new-5.18]
208+
209209
[[insert-as-synonym-of-create]]
210210
== `INSERT` as a synonym of `CREATE`
211211

modules/ROOT/pages/clauses/delete.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ This query is only possible to run on nodes without any relationships connected
5858
Deleted 1 node
5959
----
6060

61-
[role=label--new-5.14]
61+
6262
[[delete-nodetach]]
6363
=== NODETACH keyword
6464

0 commit comments

Comments
 (0)