Skip to content

Commit 5b8220d

Browse files
committed
GraphQL: item() was introduced in 4.x
1 parent db7d352 commit 5b8220d

File tree

1 file changed

+4
-42
lines changed

1 file changed

+4
-42
lines changed

docs/update_and_migration/from_3.3/to_4.0.md

Lines changed: 4 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -217,50 +217,12 @@ Example of updated query
217217
}
218218
```
219219
</td></tr>
220-
<tr><td colspan="2">The following query is made for several content types, and the content or location ID is injected before requesting it.
221-
<br>
222-
For example, <code>$criterion='locationId: 2';</code></td></tr>
223-
<tr><td class="compare">
224-
```
225-
{
226-
item ($criterion) {
227-
... on FolderContent {
228-
name
229-
}
230-
... on LandingPageContent {
231-
name
232-
}
233-
... on ArticleContent {
234-
title
235-
intro {
236-
html5
237-
}
238-
}
239-
}
240-
}
241-
```
242-
</td><td class="compare">
243-
```
244-
{
245-
item (locationId: 2) {
246-
... on FolderItem {
247-
name
248-
}
249-
... on LandingPageItem {
250-
name
251-
}
252-
... on ArticleItem {
253-
title
254-
intro {
255-
html5
256-
}
257-
}
258-
}
259-
}
260-
```
261-
</td></tr>
262220
</tbody></table>
263221

222+
While revisiting GraphQL queries, you may consider the new feature `item`
223+
allowing to fetch a content item without knowing its content type.
224+
For more information, see [Get a content item](graphql_queries.md#get-a-content-item)
225+
264226
### Back office customization
265227

266228
The v4 version of [[= product_name =]] is using Bootstrap 5 in the back office. If you were using Bootstrap 4 for styling, you need to update and adjust all custom back office components [following the migration guide from Bootstrap 4](https://getbootstrap.com/docs/5.0/migration/).

0 commit comments

Comments
 (0)