Skip to content

Commit 6b6a51f

Browse files
authored
Update docs/update_and_migration/from_3.3/to_4.0.md
1 parent c4a77cd commit 6b6a51f

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

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

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -172,12 +172,11 @@ php bin/console ibexa:migrations:migrate
172172

173173
Some GraphQL property names have changed. Adapt your queries according to the table below.
174174

175-
| 3.3 name | 4.0 name |
176-
|:-----------------------------|:--------------------------|
177-
| `id` | `contentId` |
178-
| `_info` | `_contentInfo` |
179-
| `FolderContent` | `FolderItem` |
180-
| `<ContentType>Content` | `<ContentType>Item` |
175+
| 3.3 name | 4.0 name |
176+
|:--------------------------------------------------|:--------------------------------------------|
177+
| `id` argument | `contentId` argument |
178+
| `_info` | `_contentInfo` |
179+
| `<ContentType>Content` (example: `FolderContent`) | `<ContentType>Item` (example: `FolderItem`) |
181180

182181
Example of an updated query:
183182

@@ -190,6 +189,7 @@ Example of an updated query:
190189
content {
191190
folder(id: 1) {
192191
_info {
192+
id
193193
name
194194
}
195195
}
@@ -202,6 +202,7 @@ Example of an updated query:
202202
content {
203203
folder(contentId: 1) {
204204
_contentInfo{
205+
id
205206
name
206207
}
207208
}
@@ -211,6 +212,8 @@ Example of an updated query:
211212
</td></tr>
212213
</tbody></table>
213214

215+
Notice that the argument have been updated to `contentId` while the `id` property keeps its name.
216+
214217
While revisiting GraphQL queries, you may consider the new feature `item`
215218
allowing to fetch a content item without knowing its content type.
216219
For more information, see [Get a content item](graphql_queries.md#get-a-content-item).

0 commit comments

Comments
 (0)