You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/ROOT/pages/constraints/managing-constraints.adoc
+14-11Lines changed: 14 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1070,7 +1070,7 @@ A constraint cannot be created until the index has been dropped.
1070
1070
| *Property uniqueness constraint*
1071
1071
|
1072
1072
^| ❌
1073
-
|
1073
+
|
1074
1074
1075
1075
| *Property existence constraint*
1076
1076
^| ❌
@@ -1237,7 +1237,7 @@ Node(9) with label `Movie` required the property `title` to be of type `STRING`,
1237
1237
| *Property uniqueness constraint*
1238
1238
|
1239
1239
^| ❌
1240
-
|
1240
+
|
1241
1241
1242
1242
| *Property existence constraint*
1243
1243
^| ❌
@@ -1339,7 +1339,7 @@ RETURN wrote
1339
1339
| Query
1340
1340
1341
1341
| Node property uniqueness constraint
1342
-
a|
1342
+
a|
1343
1343
[source]
1344
1344
----
1345
1345
MATCH (n1:Label), (n2:Label)
@@ -1348,7 +1348,7 @@ RETURN n1, n2
1348
1348
----
1349
1349
1350
1350
| Relationship property uniqueness constraint
1351
-
a|
1351
+
a|
1352
1352
[source]
1353
1353
----
1354
1354
MATCH ()-[r1:REL_TYPE]->(), ()-[r2:REL_TYPE]->()
@@ -1357,7 +1357,7 @@ RETURN r1, r2
1357
1357
----
1358
1358
1359
1359
| Node property existence constraint
1360
-
a|
1360
+
a|
1361
1361
[source]
1362
1362
----
1363
1363
MATCH (n:Label)
@@ -1366,7 +1366,7 @@ RETURN n
1366
1366
----
1367
1367
1368
1368
| Relationship property existence constraint
1369
-
a|
1369
+
a|
1370
1370
[source]
1371
1371
----
1372
1372
MATCH ()-[r:REL_TYPE]->()
@@ -1375,7 +1375,7 @@ RETURN r
1375
1375
----
1376
1376
1377
1377
| Node property type constraint
1378
-
a|
1378
+
a|
1379
1379
[source]
1380
1380
----
1381
1381
MATCH (n:Label)
@@ -1384,7 +1384,7 @@ RETURN n
1384
1384
----
1385
1385
1386
1386
| Relationship property type constraint
1387
-
a|
1387
+
a|
1388
1388
[source]
1389
1389
----
1390
1390
MATCH ()-[r:REL_TYPE]->()
@@ -1393,7 +1393,7 @@ RETURN r
1393
1393
----
1394
1394
1395
1395
| Node key constraint
1396
-
a|
1396
+
a|
1397
1397
[source]
1398
1398
----
1399
1399
MATCH (n1:Label), (n2:Label)
@@ -1407,7 +1407,7 @@ RETURN n AS node, 'non-existing' AS reason
1407
1407
----
1408
1408
1409
1409
| Relationship key constraint
1410
-
a|
1410
+
a|
1411
1411
[source]
1412
1412
----
1413
1413
MATCH ()-[r1:REL_TYPE]->(), ()-[r2:REL_TYPE]->()
@@ -1676,6 +1676,9 @@ label:default-output[] label:new[Introduced in 5.9]
1676
1676
== DROP CONSTRAINT
1677
1677
1678
1678
Constraints are dropped using the `DROP CONSTRAINT` command.
1679
+
It is possible to drop constraints created in a different Cypher version than the one in use.
1680
+
For example, although link:https://neo4j.com/docs/cypher-manual/25/values-and-types/vector/[`VECTOR`] property type constraints were added in Cypher 25, such constraints can still be dropped using Cypher 5.
1681
+
1679
1682
For the full command syntax to drop constraints, see xref:constraints/syntax.adoc#drop-constraint[Syntax -> DROP CONSTRAINT].
1680
1683
1681
1684
[NOTE]
@@ -1764,4 +1767,4 @@ DROP CONSTRAINT missing_constraint_name IF EXISTS
1764
1767
`DROP CONSTRAINT missing_constraint_name IF EXISTS` has no effect. `missing_constraint_name` does not exist.
0 commit comments