Skip to content

Commit 8566ff1

Browse files
authored
Merge branch '5.x' into user-feedback-subscriptions-auth
2 parents c92b53f + c5b7617 commit 8566ff1

File tree

7 files changed

+9
-96
lines changed

7 files changed

+9
-96
lines changed

.github/workflows/docs-pr-checks.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ name: "Verify docs PR"
44
on:
55
pull_request:
66
branches:
7+
- 6.x
78
- 5.x
89
- 4.x
910
- 3.x

.github/workflows/docs-teardown.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ name: "Documentation Teardown"
44
on:
55
pull_request_target:
66
branches:
7+
- 6.x
78
- 5.x
89
- 4.x
910
- 3.x

modules/ROOT/pages/deprecations.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ The following products and applications are deprecated:
99
1010
== GRANDstack starter app
1111

12-
The main purpose of the GRANDstack starter app was to demonstrate how the Neo4j Labs GraphQL library could be used in the context of a full-stack application using React and Apollo client.
12+
The main purpose of the GRANDstack starter app was to demonstrate how the Neo4j Labs GraphQL Library could be used in the context of a full-stack application using React and Apollo client.
1313
It allowed developers to build applications more quickly and with a bigger focus on functionality, while also helping users who already had an existing frontend and needed a new back end.
1414

1515
Over time, the GRANDstack starter app grew to support other frameworks such as Flutter and Angular, thus the need to revisit its scope.
16-
The intention is to replace this project with a new starter application product, which will focus on the back end and the configuration of the GraphQL library, as well as help developers with their frontend.
16+
The intention is to replace this project with a new starter application product, which will focus on the back end and the configuration of the GraphQL Library, as well as help developers with their frontend.
1717

1818
In the meantime, the `create-grandstack-app` npm package has been marked as deprecated.
1919
It can still be used to skeleton a GRANDstack app, but the user will be warned that the package is deprecated.

modules/ROOT/pages/mutations/create.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ Read about xref:mutations/update.adoc#_connectorcreate_relationships[`update`] f
112112

113113
== `connectOrCreate` relationships
114114

115-
If a related node has the `@unique` directive defined, you can use `connectOrCreate` nested in a `CREATE` mutation to perform an operation similar to a link:https://neo4j.com/docs/cypher-manual/current/clauses/merge/[Cypher `MERGE`] operation on the related node.
115+
If a related node has the `@unique` directive defined, you can use `connectOrCreate` nested in a `create` mutation to perform an operation similar to a link:https://neo4j.com/docs/cypher-manual/current/clauses/merge/[Cypher `MERGE`] operation on the related node.
116116
This will create a new relationship and the related node if it doesn't exist yet.
117117

118118
Consider the following type definitions:
@@ -157,9 +157,9 @@ This ensures that a movie with ID 1234 exists and is connected to `"Tom Hanks"`.
157157
If the movie does not exist, it will be created with the title `"Forrest Gump"`.
158158
If a movie with the given ID already exists, it will also be connected to `"Tom Hanks"`, and keep whatever title it has.
159159

160-
== `CREATE` optimization
160+
== `create` optimization
161161

162-
With `CREATE` operations, there is no limit on how many nodes can be created at once.
162+
With `create` operations, there is no limit on how many nodes can be created at once.
163163
However, there is a known performance issue for large batch sizes.
164164

165165
The Neo4j GraphQL Library contains an optimization feature designed to mitigate it, but it does not work in the following scenarios:

modules/ROOT/pages/mutations/delete.adoc

Lines changed: 1 addition & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -72,43 +72,4 @@ mutation {
7272
relationshipsDeleted
7373
}
7474
}
75-
----
76-
77-
This query is equivalent to:
78-
79-
[source, graphql, indent=0]
80-
----
81-
mutation {
82-
deleteUsers(
83-
where: {
84-
name: "Jane Doe"
85-
},
86-
delete: {
87-
posts: [
88-
where: {
89-
node: {
90-
creator: {
91-
name: "Jane Doe"
92-
}
93-
}
94-
}
95-
]
96-
}
97-
) {
98-
nodesDeleted
99-
relationshipsDeleted
100-
}
101-
}
102-
----
103-
104-
Note that the output Cypher statement should also have a redundant `WHERE` clause:
105-
106-
// !
107-
//Please add the cypher statement:
108-
109-
//[source, cypher, indent=0]
110-
//----
111-
//DELETE User (name:"Jane Doe")
112-
//WHERE Posts -
113-
//----
114-
// !
75+
----

modules/ROOT/pages/mutations/update.adoc

Lines changed: 0 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -398,56 +398,6 @@ a|
398398
|===
399399
====
400400

401-
=== Mixing `_PUSH` and `_POP`
402-
403-
It is possible to perform both a `_PUSH` and `_POP` operation in one single `update` mutation.
404-
405-
Consider the following type definitions:
406-
407-
[source, graphql, indent=0]
408-
----
409-
type Movie {
410-
title: String
411-
tags: [String]
412-
moreTags: [String]
413-
}
414-
----
415-
416-
You can update both property arrays with either `_PUSH` or `_POP` operators at once:
417-
418-
.Mutation with both a `_PUSH` and a `_POP`
419-
====
420-
[source, graphql, indent=0]
421-
----
422-
mutation {
423-
updateMovies (update: { tags_POP: 1, moreTags_PUSH: "a different tag" }) {
424-
movies {
425-
title
426-
tags
427-
moreTags
428-
}
429-
}
430-
}
431-
----
432-
433-
[col=1,1]
434-
|===
435-
| Before | After
436-
437-
a|
438-
```
439-
tags: ['some tag']
440-
moreTags: []
441-
```
442-
443-
a|
444-
```
445-
tags: []
446-
moreTags ['a different tag']
447-
```
448-
|===
449-
====
450-
451401
== Mathematical operators
452402

453403
You can use mathematical operators to update numerical fields based on their original values in a single DB transaction.

modules/ROOT/pages/queries-aggregations/filtering.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ query {
440440

441441
== Aggregation filtering
442442

443-
The Neo4j GraphQL library offers an aggregation key inside the `where` argument of each relationship.
443+
The Neo4j GraphQL Library offers an aggregation key inside the `where` argument of each relationship.
444444
You can use it both on the `node` and `edge` of a relationship.
445445

446446
Here are some examples on how to apply this kind of filtering:

0 commit comments

Comments
 (0)