Skip to content

Commit 5a3398d

Browse files
polish
1 parent cc87333 commit 5a3398d

File tree

2 files changed

+20
-22
lines changed

2 files changed

+20
-22
lines changed

modules/ROOT/pages/constraints/managing-constraints.adoc

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ Added 1 constraint.
344344
345345
======
346346

347-
.Create `VECTOR` property type constraints label:cypher[Cypher 25 only] label:new[Introduced in Neo4j 2025.xx]
347+
.Create `VECTOR` property type constraints label:cypher[Cypher 25 only] label:new[Introduced in Neo4j 2025.10]
348348
======
349349
350350
It is necessary to specify both the dimension and the coordinate type of any constrained `VECTOR` properties.
@@ -436,7 +436,7 @@ The allowed property types for property type constraints are:
436436
* `ZONED DATETIME`
437437
* `DURATION`
438438
* `POINT`
439-
* `VECTOR<TYPE>(DIMENSION)` label:cypher[Cypher 25 only] label:new[Introduced in Neo4j 2025.xx]
439+
* `VECTOR<TYPE>(DIMENSION)` label:cypher[Cypher 25 only] label:new[Introduced in Neo4j 2025.10]
440440
* `LIST<BOOLEAN NOT NULL>`
441441
* `LIST<STRING NOT NULL>`
442442
* `LIST<INTEGER NOT NULL>`
@@ -451,8 +451,7 @@ The allowed property types for property type constraints are:
451451
* Any closed dynamic union of the above types, e.g. `INTEGER | FLOAT | STRING`.
452452

453453
[NOTE]
454-
A property type constraint cannot be created for `LIST<VECTOR<TYPE>(DIMENSION) NOT NULL>`.
455-
This is because it is not possible to store lists of xref:values-and-types/vector.adoc[`VECTOR`] values.
454+
Because storing lists of xref:values-and-types/vector.adoc[`VECTOR`] values is not supported, property type constraints cannot be created for `LIST<VECTOR<TYPE>(DIMENSION) NOT NULL>`.
456455

457456
For a complete reference describing all types available in Cypher, see the section on xref::values-and-types/property-structural-constructed.adoc#types-synonyms[types and their synonyms].
458457

@@ -737,7 +736,7 @@ Additionally, some constraints cannot coexist and attempting to create them toge
737736
This includes:
738737

739738
* Property type constraints on the same label/relationship type and property but with different property types.
740-
This includes `VECTOR` types with differing dimensions or coordinate types.
739+
This includes `VECTOR` types with different dimensions or coordinate types.
741740
* Property uniqueness and key constraints on the same label/relationship type and property combination.
742741

743742
However, some constraint types are allowed on the same label/relationship type and property combination.
@@ -1096,7 +1095,7 @@ A constraint cannot be created until the index has been dropped.
10961095
| *Property uniqueness constraint*
10971096
|
10981097
^| &#x274C;
1099-
|
1098+
|
11001099

11011100
| *Property existence constraint*
11021101
^| &#x274C;
@@ -1263,7 +1262,7 @@ Node(9) with label `Movie` required the property `title` to be of type `STRING`,
12631262
| *Property uniqueness constraint*
12641263
|
12651264
^| &#x274C;
1266-
|
1265+
|
12671266

12681267
| *Property existence constraint*
12691268
^| &#x274C;
@@ -1365,7 +1364,7 @@ RETURN wrote
13651364
| Query
13661365

13671366
| Node property uniqueness constraint
1368-
a|
1367+
a|
13691368
[source]
13701369
----
13711370
MATCH (n1:Label), (n2:Label)
@@ -1374,7 +1373,7 @@ RETURN n1, n2
13741373
----
13751374

13761375
| Relationship property uniqueness constraint
1377-
a|
1376+
a|
13781377
[source]
13791378
----
13801379
MATCH ()-[r1:REL_TYPE]->(), ()-[r2:REL_TYPE]->()
@@ -1383,7 +1382,7 @@ RETURN r1, r2
13831382
----
13841383

13851384
| Node property existence constraint
1386-
a|
1385+
a|
13871386
[source]
13881387
----
13891388
MATCH (n:Label)
@@ -1392,7 +1391,7 @@ RETURN n
13921391
----
13931392

13941393
| Relationship property existence constraint
1395-
a|
1394+
a|
13961395
[source]
13971396
----
13981397
MATCH ()-[r:REL_TYPE]->()
@@ -1401,7 +1400,7 @@ RETURN r
14011400
----
14021401

14031402
| Node property type constraint
1404-
a|
1403+
a|
14051404
[source]
14061405
----
14071406
MATCH (n:Label)
@@ -1410,7 +1409,7 @@ RETURN n
14101409
----
14111410

14121411
| Relationship property type constraint
1413-
a|
1412+
a|
14141413
[source]
14151414
----
14161415
MATCH ()-[r:REL_TYPE]->()
@@ -1419,7 +1418,7 @@ RETURN r
14191418
----
14201419

14211420
| Node key constraint
1422-
a|
1421+
a|
14231422
[source]
14241423
----
14251424
MATCH (n1:Label), (n2:Label)
@@ -1433,7 +1432,7 @@ RETURN n AS node, 'non-existing' AS reason
14331432
----
14341433

14351434
| Relationship key constraint
1436-
a|
1435+
a|
14371436
[source]
14381437
----
14391438
MATCH ()-[r1:REL_TYPE]->(), ()-[r2:REL_TYPE]->()
@@ -1701,7 +1700,7 @@ label:default-output[]
17011700
== DROP CONSTRAINT
17021701

17031702
Constraints are dropped using the `DROP CONSTRAINT` command.
1704-
It is possible to drop a constraint that was created in a later Cypher version than the one currently in use.
1703+
It is possible to drop constraints created in a different Cypher version than the one in use.
17051704
For example, although `VECTOR` property type constraints were added in Cypher 25, such constraints can still be dropped using Cypher 5.
17061705

17071706
For the full command syntax to drop constraints, see xref:constraints/syntax.adoc#drop-constraint[Syntax -> DROP CONSTRAINT].
@@ -1791,4 +1790,4 @@ DROP CONSTRAINT missing_constraint_name IF EXISTS
17911790
`DROP CONSTRAINT missing_constraint_name IF EXISTS` has no effect. `missing_constraint_name` does not exist.
17921791
----
17931792
1794-
======
1793+
======

modules/ROOT/pages/constraints/syntax.adoc

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ If a name is not explicitly given, a unique name will be auto-generated.
1919
[NOTE]
2020
Creating a constraint requires the link:{neo4j-docs-base-uri}/operations-manual/current/authentication-authorization/database-administration/#access-control-database-administration-constraints[`CREATE CONSTRAINT` privilege].
2121

22-
The `CREATE CONSTRAINT` command is optionally idempotent.
22+
The `CREATE CONSTRAINT` command is optionally idempotent.
2323
This means its default behavior is to throw an error if an attempt is made to create the same constraint twice.
2424
With the `IF NOT EXISTS` flag, no error is thrown and nothing happens should a constraint with the same name or same schema and constraint type already exist.
2525
It may still throw an error if conflicting data, indexes, or constraints exist.
@@ -122,7 +122,7 @@ Where `<TYPE>` is one of the following property types:
122122
* `ZONED DATETIME`
123123
* `DURATION`
124124
* `POINT`
125-
* `VECTOR<TYPE>(DIMENSION)` label:cypher[Cypher 25 only] label:new[Introduced in Neo4j 2025.xx]
125+
* `VECTOR<TYPE>(DIMENSION)` label:cypher[Cypher 25 only] label:new[Introduced in Neo4j 2025.10]
126126
* `LIST<BOOLEAN NOT NULL>`
127127
* `LIST<STRING NOT NULL>`
128128
* `LIST<INTEGER NOT NULL>`
@@ -137,8 +137,7 @@ Where `<TYPE>` is one of the following property types:
137137
* Any closed dynamic union of the above types, e.g. `INTEGER | FLOAT | STRING`.
138138

139139
[NOTE]
140-
A property type constraint cannot be created for `LIST<VECTOR<TYPE>(DIMENSION) NOT NULL>`.
141-
This is because it is not possible to store lists of `VECTOR` values.
140+
Because storing lists of xref:values-and-types/vector.adoc[`VECTOR`] values is not supported, property type constraints cannot be created for `LIST<VECTOR<TYPE>(DIMENSION) NOT NULL>`.
142141
Additionally, `VECTOR` property type constraints must be created with a specific dimension and coordinate value, where the dimension must be greater than `0` and less or equal to `4096`.
143142
For more information, see xref:values-and-types/vector.adoc[Values and types -> Vectors].
144143

@@ -317,4 +316,4 @@ This means its default behavior is to throw an error if an attempt is made to dr
317316
With the `IF EXISTS` flag, no error is thrown and nothing happens should the constraint not exist.
318317
Instead, an informational notification is returned detailing that the constraint does not exist.
319318

320-
For examples on how to drop constraints, see xref:constraints/managing-constraints.adoc#drop-constraint[Create, show, and drop constraints -> DROP CONSTRAINT].
319+
For examples on how to drop constraints, see xref:constraints/managing-constraints.adoc#drop-constraint[Create, show, and drop constraints -> DROP CONSTRAINT].

0 commit comments

Comments
 (0)