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/schema/graph-types/drop-graph-type-elements.adoc
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@
5
5
The `ALTER CURRENT GRAPH TYPE DROP` command allows you to drop element types and constraints from a graph type.
6
6
7
7
[NOTE]
8
-
Dropping element types and constraints from a graph type the link:{neo4j-docs-base-uri}/operations-manual/current/authentication-authorization/database-administration/#access-control-database-administration-constraints[`DROP CONSTRAINT` privilege].
8
+
Dropping element types and constraints from a graph type requires the link:{neo4j-docs-base-uri}/operations-manual/current/authentication-authorization/database-administration/#access-control-database-administration-constraints[`DROP CONSTRAINT` privilege].
[REQUIRE {alias.propertyName | (alias.propertyName[, ...])} IS [REL[ATIONSHIP]] {KEY | UNIQUE}]
31
+
[REQUIRE {alias.propertyName | (alias.propertyName[, ...])} IS [REL[ATIONSHIP]] {KEY | UNIQUE}][...]
32
32
-----
33
33
34
34
[NOTE]
@@ -41,6 +41,8 @@ A relationship element type requires either:
41
41
42
42
For more information, see xref:schema/graph-types/set-graph-types.adoc#relationship-element-types[Set graph types -> Relationship element types].
43
43
44
+
`<TYPE>` can be one of the property types listed in xref:schema/syntax.adoc#constraints-definitions[constraint definitions in graph types], the `NOT NULL` versions of those types, or `ANY NOT NULL`.
45
+
44
46
The three variations of the property type expression, `IS ::`, `::`, and `IS TYPED` are syntactic synonyms for the same expression.
45
47
The preferred syntax when defining node and relationship element types in a graph type is the `::` variant.
46
48
@@ -65,7 +67,7 @@ a|
65
67
----
66
68
CONSTRAINT [constraint_name]
67
69
FOR ()-”[“alias [{IS \| :} IDENTIFYING_RELATIONSHIP_TYPE [=> \| IMPLIES]] “]”->()
REQUIRE {alias.propertyName \| (alias.propertyName[, ...])} IS [REL[ATIONSHIP]] {KEY \| UNIQUE}
102
104
----
103
105
104
106
| Relationship property existence and property type constraint
@@ -142,11 +144,6 @@ The preferred syntax when defining constraints in a graph type is the `IS ::` va
142
144
* `LIST<POINT NOT NULL>`
143
145
* Any closed dynamic union of the above types, e.g. `INTEGER | FLOAT | STRING`.
144
146
145
-
Additionally, for properties that are part of element types:
146
-
147
-
* The `NOT NULL` versions of the above types
148
-
* `ANY NOT NULL`
149
-
150
147
Allowed syntax variations of these types are listed in xref:values-and-types/property-structural-constructed.adoc#types-synonyms[Values and types -> Types and their synonyms].
151
148
152
149
[[set-graph-types]]
@@ -296,6 +293,8 @@ a|
296
293
----
297
294
|===
298
295
296
+
`<TYPE>` can be the same property types as for xref:schema/syntax.adoc#element-types[node and relationship element types].
297
+
299
298
[NOTE]
300
299
If the full definition is provided, then it needs to match exactly the node or relationship element type being dropped.
0 commit comments