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: docs/5.x/upgrade.md
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -261,7 +261,7 @@ The reusability of entry types means that some GraphQL queries have changed.
261
261
Entries can still be queried by section using the corresponding query type (i.e. `ingredientsEntries`) or the `section` argument for the generic `entries` query:
262
262
263
263
::: code
264
-
```gql{2} Section Query
264
+
```graphql{2} Section Query
265
265
query MyIngredients {
266
266
ingredientsEntries {
267
267
... on ingredient_Entry {
@@ -270,7 +270,7 @@ The reusability of entry types means that some GraphQL queries have changed.
270
270
}
271
271
}
272
272
```
273
-
```gql{2} Generic Query
273
+
```graphql{2} Generic Query
274
274
query MyIngredients {
275
275
entries(section: "ingredients") {
276
276
... on ingredient_Entry {
@@ -284,7 +284,7 @@ The reusability of entry types means that some GraphQL queries have changed.
284
284
The corresponding queries for entries nested within a Matrix field would look like this:
285
285
286
286
::: code
287
-
```gql{2} Field Query
287
+
```graphql{2} Field Query
288
288
query DifficultSteps {
289
289
stepsFieldEntries(difficulty: "hard") {
290
290
... on step_Entry {
@@ -294,7 +294,7 @@ The reusability of entry types means that some GraphQL queries have changed.
294
294
}
295
295
}
296
296
```
297
-
```gql{2} Generic Query
297
+
```graphql{2} Generic Query
298
298
query DifficultSteps {
299
299
entries(field: "steps", difficulty: "hard") {
300
300
... on step_Entry {
@@ -309,7 +309,7 @@ The reusability of entry types means that some GraphQL queries have changed.
309
309
- Mutations directly targeting nested entries in Matrix fields will use a similar structure, but combining the field handle and entry type handle: `save_stepsField_step_Entry`.
310
310
- When mutating a Matrix field value via GraphQL, the nested entries must be passed under an `entries` key instead of a `blocks` key:
0 commit comments