Skip to content

Commit 73bd130

Browse files
recrwplaylidiazuin
authored andcommitted
5.8 dev reconciliation (#564)
This PR updates 5.x with updates from PRs into dev that were not cherry-picked into 5.x at any point. While it looks like a lot of commits were missing, in the end it amounts to changes in 14 files, some of which are trivial and do not affect the content or output. I'd be happy to use 'squash and merge' to reduce this update to a single commit in 5.x
1 parent bc8a197 commit 73bd130

File tree

7 files changed

+56
-12
lines changed

7 files changed

+56
-12
lines changed

README.adoc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ To view the built site, launch a local server:
4040
. `npm start`
4141
. In a browser tab, go to `localhost:8000`
4242

43-
4443
=== Live preview
4544

4645
When you run `npm start`, the project is monitored for updates to asciidoc files.

modules/ROOT/pages/administration/access-control/built-in-roles.adoc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -453,8 +453,7 @@ To restore the role to its original capabilities two steps are needed.
453453
First, execute `DROP ROLE admin`.
454454
Secondly, run these queries:
455455

456-
// we cannot test this right now cause we would delete the role the test user is logged with
457-
456+
// cannot test as it would require deleting the role the test user is logged with
458457
[source, cypher, role=noplay test-skip]
459458
----
460459
CREATE ROLE admin

modules/ROOT/pages/administration/access-control/manage-users.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -817,6 +817,7 @@ Users can change their password using `ALTER CURRENT USER SET PASSWORD`.
817817
The old password is required in addition to the new one, and either or both can be a string value or a string parameter.
818818
When a user executes this command it will change their password as well as set the `CHANGE NOT REQUIRED` flag.
819819

820+
// can't test, don't want to hardcode test user password
820821
[source, cypher, role=test-skip]
821822
----
822823
ALTER CURRENT USER

modules/ROOT/pages/administration/aliases.adoc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -575,6 +575,7 @@ SHOW ALIAS `northwind` FOR DATABASE
575575
======
576576
577577
Local database aliases can also be given properties.
578+
These properties can then be used in queries with the xref::functions/graph.adoc#functions-graph-propertiesByName[`graph.propertiesByName()` function].
578579
579580
.Query
580581
[source, cypher]
@@ -761,6 +762,7 @@ SHOW ALIAS `remote-with-driver-settings` FOR DATABASE YIELD *
761762
.+Setting properties for remote database aliases+
762763
======
763764
Just as the local database aliases, the remote database aliases can be given properties.
765+
These properties can then be used in queries with the xref::functions/graph.adoc#functions-graph-propertiesByName[`graph.propertiesByName()` function].
764766
765767
.Query
766768
[source, cypher]
@@ -1083,6 +1085,8 @@ ALTER ALIAS `movie scripts` SET DATABASE PROPERTIES { nameContainsSpace: true }
10831085
System updates: 1
10841086
Rows: 0
10851087
----
1088+
1089+
The updated properties can then be used in queries with the xref::functions/graph.adoc#functions-graph-propertiesByName[`graph.propertiesByName()` function].
10861090
======
10871091

10881092
.+Altering local and remote aliases in composite databases+
@@ -1113,6 +1117,8 @@ System updates: 1
11131117
Rows: 0
11141118
----
11151119
1120+
The updated properties can then be used in queries with the xref::functions/graph.adoc#functions-graph-propertiesByName[`graph.propertiesByName()` function].
1121+
11161122
======
11171123

11181124
The changes for all database aliases will show up in the `SHOW ALIASES FOR DATABASE` command.

modules/ROOT/pages/administration/databases.adoc

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -611,15 +611,6 @@ CREATE COMPOSITE DATABASE inventory
611611
[role="statsonlyqueryresult"]
612612
0 rows, System updates: 1
613613

614-
[NOTE]
615-
====
616-
Composite database names are subject to the same rules as standard databases.
617-
One difference is however that the deprecated syntax using dots without enclosing the name in backticks is not available.
618-
Both dots and dashes needs to be enclosed within backticks when using composite databases.
619-
620-
621-
====
622-
623614
When a composite database has been created, it will show up in the listing provided by the command `SHOW DATABASES`.
624615

625616

modules/ROOT/pages/functions/list.adoc

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,11 @@ The following graph is used for the examples below:
1919

2020
image::graph-list-functions.svg[Example graph connecting people after their roles as administrator, designer, and developer,role=popup,width=600]
2121

22+
<<<<<<< HEAD
2223
To recreate the graph, run the following query against an empty Neo4j database:
24+
=======
25+
To recreate the graph, run the following query in an empty Neo4j database:
26+
>>>>>>> bec9309 (5.8 dev reconciliation (#564))
2327
2428
[source, cypher, role=test-setup]
2529
----
@@ -60,7 +64,10 @@ CREATE
6064
======
6165

6266
.Query
67+
<<<<<<< HEAD
6368
// tag::functions_list_keys[]
69+
=======
70+
>>>>>>> bec9309 (5.8 dev reconciliation (#564))
6471
[source, cypher]
6572
----
6673
MATCH (a) WHERE a.name = 'Alice'
@@ -74,8 +81,13 @@ A `LIST<STRING>` containing the names of all the properties on the node bound to
7481
[role="queryresult",options="header,footer",cols="1*<m"]
7582
|===
7683
84+
<<<<<<< HEAD
7785
| keys(a)
7886
| ["eyes", "name", "age"]
87+
=======
88+
| +keys(a)+
89+
| +["eyes","name","age"]+
90+
>>>>>>> bec9309 (5.8 dev reconciliation (#564))
7991
1+d|Rows: 1
8092

8193
|===
@@ -109,7 +121,10 @@ A `LIST<STRING>` containing the names of all the properties on the node bound to
109121
======
110122

111123
.Query
124+
<<<<<<< HEAD
112125
// tag::functions_list_labels[]
126+
=======
127+
>>>>>>> bec9309 (5.8 dev reconciliation (#564))
113128
[source, cypher]
114129
----
115130
MATCH (a) WHERE a.name = 'Alice'
@@ -157,7 +172,10 @@ A `LIST<STRING>` containing all the labels of the node bound to `a` is returned.
157172
======
158173
159174
.Query
175+
<<<<<<< HEAD
160176
// tag::functions_list_nodes[]
177+
=======
178+
>>>>>>> bec9309 (5.8 dev reconciliation (#564))
161179
[source, cypher]
162180
----
163181
MATCH p = (a)-->(b)-->(c)
@@ -208,7 +226,10 @@ The only exception where the range does not contain `start` are empty ranges.
208226
======
209227

210228
.Query
229+
<<<<<<< HEAD
211230
// tag::functions_list_range[]
231+
=======
232+
>>>>>>> bec9309 (5.8 dev reconciliation (#564))
212233
[source, cypher]
213234
----
214235
RETURN range(0, 10), range(2, 18, 3), range(0, 5, -1)
@@ -257,7 +278,10 @@ As such, Cypher's `reduce()` is analogous to the `fold` or `reduce` methods in f
257278
======
258279
259280
.Query
281+
<<<<<<< HEAD
260282
// tag::functions_list_reduce[]
283+
=======
284+
>>>>>>> bec9309 (5.8 dev reconciliation (#564))
261285
[source, cypher]
262286
----
263287
MATCH p = (a)-->(b)-->(c)
@@ -305,7 +329,10 @@ The `age` property of all `NODE` values in the `PATH` are summed and returned as
305329
======
306330

307331
.Query
332+
<<<<<<< HEAD
308333
// tag::functions_list_relationships[]
334+
=======
335+
>>>>>>> bec9309 (5.8 dev reconciliation (#564))
309336
[source, cypher]
310337
----
311338
MATCH p = (a)-->(b)-->(c)
@@ -354,7 +381,10 @@ A `LIST<RELATIONSHIP>` containing all the `RELATIONSHIP` values in the `PATH` `p
354381
======
355382
356383
.Query
384+
<<<<<<< HEAD
357385
// tag::functions_list_reverse[]
386+
=======
387+
>>>>>>> bec9309 (5.8 dev reconciliation (#564))
358388
[source, cypher]
359389
----
360390
WITH [4923,'abc',521, null, 487] AS ids
@@ -391,7 +421,10 @@ RETURN reverse(ids)
391421
======
392422

393423
.Query
424+
<<<<<<< HEAD
394425
// tag::functions_list_tail[]
426+
=======
427+
>>>>>>> bec9309 (5.8 dev reconciliation (#564))
395428
[source, cypher]
396429
----
397430
MATCH (a) WHERE a.name = 'Eskil'
@@ -492,7 +525,10 @@ toBooleanList(['a string', true, 'false', null, ['A','B']]) as mixedList
492525
======
493526
494527
.Query
528+
<<<<<<< HEAD
495529
// tag::functions_list_to_float_list[]
530+
=======
531+
>>>>>>> bec9309 (5.8 dev reconciliation (#564))
496532
[source, cypher]
497533
----
498534
RETURN toFloatList(null) as noList,
@@ -542,7 +578,10 @@ toFloatList(['a string', 2.5, '3.14159', null, ['A','B']]) as mixedList
542578
======
543579

544580
.Query
581+
<<<<<<< HEAD
545582
// tag::functions_list_to_integer_list[]
583+
=======
584+
>>>>>>> bec9309 (5.8 dev reconciliation (#564))
546585
[source, cypher]
547586
----
548587
RETURN toIntegerList(null) as noList,

modules/ROOT/pages/introduction/cypher-overview.adoc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,15 @@ MERGE (keanu)-[:ACTED_IN]->(matrix)
1313
----
1414
////
1515

16+
////
17+
[source, cypher, role=test-setup]
18+
----
19+
MERGE (matrix:Movie {title: 'The Matrix', rating: 10})
20+
MERGE (keanu:Person {name: 'Keanu Reeves'})
21+
MERGE (keanu)-[:ACTED_IN]->(matrix)
22+
----
23+
////
24+
1625
== What is Cypher?
1726

1827
Cypher is Neo4j’s declarative graph query language.

0 commit comments

Comments
 (0)