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
+52-11Lines changed: 52 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,9 +9,9 @@ In a nutshell, if you were using this kind of query:
9
9
10
10
```
11
11
query {
12
-
route(path: "/node/1") {
12
+
route(path: "/node/1") {
13
13
entity {
14
-
entityLabel
14
+
entityLabel
15
15
}
16
16
}
17
17
}
@@ -20,10 +20,10 @@ query {
20
20
It has to become this:
21
21
```
22
22
query {
23
-
route(path: "/node/1") {
24
-
... EntityCanonicalUrl {
23
+
route(path: "/node/1") {
24
+
... EntityCanonicalUrl {
25
25
entity {
26
-
entityLabel
26
+
entityLabel
27
27
}
28
28
}
29
29
}
@@ -153,17 +153,58 @@ Due to the way the new execution library handles results, `null` values in Strin
153
153
## API changes
154
154
These changes affect you if you’ve been developing custom schema plugins.
155
155
156
-
## API changes
157
156
### Development flag
158
157
The three settings for result cache, schema cache and field security have been replaced with one `development` flag, which turns the GraphQL module into development mode. This will also enable advanced error reporting in the underlying execution library.
159
158
159
+
Before:
160
+
```yaml
161
+
parameters:
162
+
graphql.config:
163
+
# GraphQL result cache:
164
+
#
165
+
# By default, the GraphQL results get cached. This can be disabled during development.
166
+
#
167
+
# @default true
168
+
result_cache: true
169
+
170
+
# GraphQL schema cache:
171
+
#
172
+
# By default, the GraphQL schema gets cached. This can be disabled during development.
173
+
#
174
+
# @default true
175
+
schema_cache: true
176
+
177
+
# Development mode:
178
+
#
179
+
# Disables field security. All fields can be resolved without restrictions.
180
+
#
181
+
# @default false
182
+
development: false
183
+
```
184
+
185
+
After:
186
+
```yaml
187
+
parameters:
188
+
graphql.config:
189
+
# Development mode:
190
+
#
191
+
# Enables debugging mode and disables field security and caching.
192
+
#
193
+
# When enabled, all fields can be resolved without restrictions
194
+
# and the caching strategy of the schema and query results is
195
+
# disabled entirely.
196
+
#
197
+
# @default false
198
+
development: false
199
+
```
200
+
160
201
### Enum definitions
161
202
`buildEnumValues` has to return an array of the following structure:
162
203
163
204
```php
164
205
[
165
-
'VALUE_A' => [
166
-
'value' => 'a',
206
+
'VALUE_A' => [
207
+
'value' => 'a',
167
208
'description' => 'The letter a',
168
209
],
169
210
]
@@ -172,9 +213,9 @@ The three settings for result cache, schema cache and field security have been r
0 commit comments