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/update_and_migration/from_3.3/to_4.0.md
+4-42Lines changed: 4 additions & 42 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -217,50 +217,12 @@ Example of updated query
217
217
}
218
218
```
219
219
</td></tr>
220
-
<tr><tdcolspan="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><tdclass="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><tdclass="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>
262
220
</tbody></table>
263
221
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
+
264
226
### Back office customization
265
227
266
228
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