Skip to content

Commit ef71fd9

Browse files
committed
to_4.0.md: Draft doc about GraphQL update
1 parent e8fb0d0 commit ef71fd9

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

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

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,48 @@ php bin/console ibexa:migrations:migrate
168168

169169
## Update your custom code
170170

171+
### GraphQL
172+
173+
TODO: Confirm it happens between 3.3 and 4.0
174+
175+
Some property names has changed and your GraphQL queries need to be updated.
176+
177+
TODO: Complete the list of renamed elements
178+
179+
| 3.3 name | 4.0 name |
180+
|:---------|:---------|
181+
|`_info`|`_contentInfo`|
182+
183+
TODO: Example with more renamed elements
184+
185+
Example of updated query
186+
187+
<table><tbody><tr><td>
188+
```graphql
189+
{
190+
content {
191+
folder(id: 1) {
192+
_info {
193+
name
194+
}
195+
}
196+
}
197+
}
198+
```
199+
</td><td>
200+
```graphql
201+
{
202+
content {
203+
folder(contentId: 1) {
204+
_contentInfo{
205+
name
206+
}
207+
}
208+
}
209+
}
210+
```
211+
</td></tr></tbody></table>
212+
171213
### Back office customization
172214

173215
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)