File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed
docs/update_and_migration/from_3.3 Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -172,12 +172,11 @@ php bin/console ibexa:migrations:migrate
172172
173173Some 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
182181Example 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+
214217While revisiting GraphQL queries, you may consider the new feature ` item `
215218allowing to fetch a content item without knowing its content type.
216219For more information, see [ Get a content item] ( graphql_queries.md#get-a-content-item ) .
You can’t perform that action at this time.
0 commit comments