Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document GraphQL changes between 3.x and 4.x #2572

Draft
wants to merge 11 commits into
base: master
Choose a base branch
from
18 changes: 13 additions & 5 deletions docs/update_and_migration/from_3.3/to_4.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,13 +170,21 @@ php bin/console ibexa:migrations:migrate

### GraphQL

TODO: Confirm it happens between 3.3 and 4.0

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

| 3.3 name | 4.0 name |
|:--------------------------------------------------|:--------------------------------------------|
| `id` argument | `contentId` argument |
| `_info` content item property | `_contentInfo` content item property |
| `<ContentType>Content` (example: `FolderContent`) | `<ContentType>Item` (example: `FolderItem`) |
TODO: Complete the list of renamed elements

| 3.3 name | 4.0 name |
|:--------------------------------------------------------------|:--------------------------------------------------------|
| `id` argument | `contentId` argument |
| `_info` content item property | `_contentInfo` content item property |
| `<ContentType>Content` (example: `FolderContent`) | `<ContentType>Item` (example: `FolderItem`) |
| `create<ContentType>Content` (example: `createFolderContent`) | `create<ContentType>Item` (example: `createFolderItem`) |

TODO: Example with more renamed elements
TODO: Example with mutations

Example of an updated query:

Expand Down