Skip to content

Commit 323e4de

Browse files
committed
GraphQL: code block language
1 parent 8983b64 commit 323e4de

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/5.x/upgrade.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ The reusability of entry types means that some GraphQL queries have changed.
261261
Entries can still be queried by section using the corresponding query type (i.e. `ingredientsEntries`) or the `section` argument for the generic `entries` query:
262262
263263
::: code
264-
```gql{2} Section Query
264+
```graphql{2} Section Query
265265
query MyIngredients {
266266
ingredientsEntries {
267267
... on ingredient_Entry {
@@ -270,7 +270,7 @@ The reusability of entry types means that some GraphQL queries have changed.
270270
}
271271
}
272272
```
273-
```gql{2} Generic Query
273+
```graphql{2} Generic Query
274274
query MyIngredients {
275275
entries(section: "ingredients") {
276276
... on ingredient_Entry {
@@ -284,7 +284,7 @@ The reusability of entry types means that some GraphQL queries have changed.
284284
The corresponding queries for entries nested within a Matrix field would look like this:
285285
286286
::: code
287-
```gql{2} Field Query
287+
```graphql{2} Field Query
288288
query DifficultSteps {
289289
stepsFieldEntries(difficulty: "hard") {
290290
... on step_Entry {
@@ -294,7 +294,7 @@ The reusability of entry types means that some GraphQL queries have changed.
294294
}
295295
}
296296
```
297-
```gql{2} Generic Query
297+
```graphql{2} Generic Query
298298
query DifficultSteps {
299299
entries(field: "steps", difficulty: "hard") {
300300
... on step_Entry {
@@ -309,7 +309,7 @@ The reusability of entry types means that some GraphQL queries have changed.
309309
- 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`.
310310
- When mutating a Matrix field value via GraphQL, the nested entries must be passed under an `entries` key instead of a `blocks` key:
311311
312-
```gql{2,5}
312+
```graphql{2,5}
313313
mutation AddStep {
314314
save_recipes_recipe_Entry(
315315
title: "Yummy Bits and Bytes"

0 commit comments

Comments
 (0)