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: doc/upgrade/beta6.md
+16-16Lines changed: 16 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ The type structure of the `Url` object changed. While before there have been jus
7
7
8
8
In a nutshell, if you were using this kind of query:
9
9
10
-
```
10
+
```gql
11
11
query {
12
12
route(path: "/node/1") {
13
13
entity {
@@ -18,10 +18,10 @@ query {
18
18
```
19
19
20
20
It has to become this:
21
-
```
21
+
```gql
22
22
query {
23
23
route(path: "/node/1") {
24
-
... EntityCanonicalUrl {
24
+
...onEntityCanonicalUrl {
25
25
entity {
26
26
entityLabel
27
27
}
@@ -34,7 +34,7 @@ query {
34
34
The interfaces for entities have been aligned with the entity interfaces in Drupal. There is an `EntityOwnable`, `EntityPublishable` and `EntityRevisionable` interface which now hold the respective fields.
35
35
36
36
Before:
37
-
```
37
+
```gql
38
38
query {
39
39
entity:route(path: "/node/1") {
40
40
...onEntityCanonicalUrl {
@@ -55,7 +55,7 @@ query {
55
55
56
56
After:
57
57
58
-
```
58
+
```gql
59
59
query {
60
60
entity:route(path: "/node/1") {
61
61
...onEntityCanonicalUrl {
@@ -85,35 +85,35 @@ Emumerations are uppercased now. For the schema generated by `graphql_core` this
85
85
86
86
Before:
87
87
88
-
```
88
+
```gql
89
89
query {
90
90
entity:route(path: "/node/1") {
91
91
...onEntityCanonicalUrl {
92
92
entity {
93
93
entityTranslation(language: de) {
94
-
... on NodeArticle {
94
+
...onNodeArticle {
95
95
entityLabel
96
96
fieldImage {
97
97
derivative(style: thumbnail) {
98
98
url
99
99
}
100
100
}
101
-
}
102
-
}
103
101
}
104
-
}
102
+
}
103
+
}
104
+
}
105
105
}
106
106
}
107
107
```
108
108
109
109
After:
110
-
```
110
+
```gql
111
111
query {
112
112
entity:route(path: "/node/1") {
113
113
...onEntityCanonicalUrl {
114
114
entity {
115
115
entityTranslation(language: DE) {
116
-
... on NodeArticle {
116
+
...onNodeArticle {
117
117
entityLabel
118
118
fieldImage {
119
119
derivative(style: THUMBNAIL) {
@@ -122,8 +122,8 @@ query {
122
122
}
123
123
}
124
124
}
125
-
}
126
-
}
125
+
}
126
+
}
127
127
}
128
128
}
129
129
```
@@ -132,7 +132,7 @@ query {
132
132
Entity fields that contain only one property are simplified and directly emit that value.
0 commit comments