Skip to content

Commit b70d620

Browse files
post review corrections 5 (misc)
1 parent a8da38e commit b70d620

File tree

4 files changed

+10
-11
lines changed

4 files changed

+10
-11
lines changed

modules/ROOT/pages/deprecations-additions-removals-compatibility.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,10 @@ label:functionality[]
5353
label:updated[]
5454
[source, syntax, role="noheader"]
5555
----
56-
SHOW NODE EXIST[ENCE] \| EXIST[ENCE] CONSTRAINTS
56+
SHOW [NODE] EXIST[ENCE] CONSTRAINTS
5757
----
5858

59-
| The `NODE EXIST[ENCE]` and `EXIST[ENCE]` type filtering options allowed by the `SHOW CONSTRAINTS` command now also return node label existence constraints (crated as part of node element types in a xref:schema/graph-types/index.adoc[graph type]).
59+
| The `NODE EXIST[ENCE]` and `EXIST[ENCE]` type filtering options allowed by the `SHOW CONSTRAINTS` command now also return node label existence constraints (created as part of node element types in a xref:schema/graph-types/index.adoc[graph type]).
6060
For more information, see xref:schema/syntax.adoc#constraints-syntax-list-type-filter[Syntax -> Type filters].
6161

6262
a|

modules/ROOT/pages/schema/graph-types/extend-graph-types.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ It is implemented with the following constraints:
6262
| `address :: STRING`
6363

6464
| `(:Company)`
65-
| Node property key
65+
| Node property uniqueness
6666
| `address IS UNIQUE`
6767

6868
| `()-[:WORKS_FOR]\->()`

modules/ROOT/pages/schema/graph-types/list-graph-types.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ SHOW CURRENT GRAPH TYPE
4545
| | (:`Robot` => :`Machine`&`Resident` {`application` :: STRING NOT NULL, `id` :: INTEGER NOT NULL}), |
4646
| | (:`Resident`)-[:`LIVES_IN` => {`since` :: ANY NOT NULL}]->(:`City` =>), |
4747
| | (:`Person` =>)-[:`WORKS_FOR` => {`role` :: STRING}]->(:`Company` =>), |
48-
| | CONSTRAINT `constraint_d13497d2` FOR (`n`:`Company` =>) REQUIRE (`n`.`address`) IS UNIQUE, |
48+
| | CONSTRAINT `constraint_d7524c38` FOR (`n`:`Company` =>) REQUIRE (`n`.`address`) IS UNIQUE, |
4949
| | CONSTRAINT `company_name` FOR (`n`:`Company` =>) REQUIRE (`n`.`name`) IS KEY, |
5050
| | CONSTRAINT `constraint_bb1018eb` FOR (`n`:`Person` =>) REQUIRE (`n`.`name`, `n`.`ssn`) IS KEY, |
5151
| | CONSTRAINT `constraint_302a3693` FOR (`n`:`Pet` =>) REQUIRE (`n`.`healthCertificate`) IS UNIQUE, |
@@ -117,7 +117,7 @@ SHOW CURRENT GRAPH TYPE YIELD specification
117117
| (:`Robot` => :`Machine`&`Resident` {`application` :: STRING NOT NULL, `id` :: INTEGER NOT NULL}), |
118118
| (:`Resident`)-[:`LIVES_IN` => {`since` :: ANY NOT NULL}]->(:`City` =>), |
119119
| (:`Person` =>)-[:`WORKS_FOR` => {`role` :: STRING}]->(:`Company` =>), |
120-
| CONSTRAINT `constraint_d13497d2` FOR (`n`:`Company` =>) REQUIRE (`n`.`address`) IS UNIQUE, |
120+
| CONSTRAINT `constraint_d7524c38` FOR (`n`:`Company` =>) REQUIRE (`n`.`address`) IS UNIQUE, |
121121
| CONSTRAINT `company_name` FOR (`n`:`Company` =>) REQUIRE (`n`.`name`) IS KEY, |
122122
| CONSTRAINT `constraint_bb1018eb` FOR (`n`:`Person` =>) REQUIRE (`n`.`name`, `n`.`ssn`) IS KEY, |
123123
| CONSTRAINT `constraint_302a3693` FOR (`n`:`Pet` =>) REQUIRE (`n`.`healthCertificate`) IS UNIQUE, |
@@ -213,4 +213,4 @@ ORDER BY labelsOrTypes
213213
[NOTE]
214214
All dependent node label existence, relationship source/target label, property existence, and property types constraints have a generated name.
215215
This is because they cannot be named when defined in their respective node and relationship element types.
216-
The `createStatement` column will also return `NULL` for these constraints, because they cannot be created through a `CREATE CONSTRAINT` command.
216+
The `createStatement` column will also return `null` for these constraints, because they cannot be created through a `CREATE CONSTRAINT` command.

modules/ROOT/pages/schema/graph-types/set-graph-types.adoc

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,10 @@ A graph type defines the schema of a database and is set with the command `ALTER
77

88
Graph types can include:
99

10-
Graph types can include:
11-
1210
* xref:schema/graph-types/set-graph-types.adoc#node-element-types[Node element types]
1311
* xref:schema/graph-types/set-graph-types.adoc#relationship-element-types[Relationship element types]
1412
* xref:schema/graph-types/set-graph-types.adoc#constraints-on-identifying-labels-and-types[Property uniqueness and key constraints defined on identifying node labels or relationship types]
15-
* xref:schema/graph-types/set-graph-types.adoc#constraints-on-non-identifying-labels-and-types[property existence, property type, property uniqueness, and key constraints defined on non-identifying node labels or relationship types]
13+
* xref:schema/graph-types/set-graph-types.adoc#constraints-on-non-identifying-labels-and-types[Property existence, property type, property uniqueness, and key constraints defined on non-identifying node labels or relationship types]
1614
1715
The three first categories are discussed in the section xref:schema/graph-types/set-graph-types.adoc#set-graph-type-empty-database[Set a graph type on an empty database].
1816
The last category is discussed in the section xref:schema/graph-types/set-graph-types.adoc#set-graph-type-populated-database[Set a graph type on a populated database].
@@ -21,7 +19,7 @@ The last category is discussed in the section xref:schema/graph-types/set-graph-
2119
====
2220
Setting a graph type requires the following privileges:
2321
24-
* link:{neo4j-docs-base-uri}/operations-manual/current/authentication-authorization/database-administration/#access-control-database-administration-constraints[`CREATE CONSTRAINT`]
22+
* link:{neo4j-docs-base-uri}/operations-manual/current/authentication-authorization/database-administration/#access-control-database-administration-constraints[`CREATE CONSTRAINT`]
2523
* link:{neo4j-docs-base-uri}/operations-manual/current/authentication-authorization/database-administration/#access-control-database-administration-constraints[`DROP CONSTRAINT`]
2624
* link:{neo4j-docs-base-uri}/operations-manual/current/authentication-authorization/database-administration/#access-control-database-administration-tokens[`NAME MANAGEMENT`] (if graph type includes node labels, relationship types, or properties not already in the graph)
2725
====
@@ -428,7 +426,8 @@ CREATE (:StrayAnimal:Animal:Resident {id: '24.09-172898'}),
428426
.Create nodes with node labels and relationship types not included in the graph type
429427
[source, cypher]
430428
----
431-
MATCH (ben:Person {name: 'Benjamin Davis'}), (zoey:Pet {name: 'Zoey'}), (gary:Robot {name: 'Gary'})CREATE (ben)-[:OWNER_OF {ownershipId: 'GTHD-985'}]->(zoey),
429+
MATCH (ben:Person {name: 'Benjamin Davis'}), (zoey:Pet {name: 'Zoey'}), (gary:Robot {name: 'Gary'})
430+
CREATE (ben)-[:OWNER_OF {ownershipId: 'GTHD-985'}]->(zoey),
432431
(ben)-[:WORKS_FOR {role: 'Product Manager'}]->(healthyPets:Company {name: 'Healthy Pets Inc.', address: '4567 Wellness Drive, Los Angeles, CA 90001'}),
433432
(gary)-[:INSTALLED_AT]->(healthyPets)
434433
----

0 commit comments

Comments
 (0)