-
Notifications
You must be signed in to change notification settings - Fork 81
Document GraphQL changes between 3.x and 4.x #2572
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
Draft
adriendupuis
wants to merge
11
commits into
5.0
Choose a base branch
from
graphql-update
base: 5.0
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from 8 commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
ef71fd9
to_4.0.md: Draft doc about GraphQL update
adriendupuis 79ad34d
to_4.0.md: Add few renamed elements
adriendupuis 2ceaf9a
to_4.0.md: Add few more renamed elements
adriendupuis d6b4326
to_4.0.md: Add few more renamed elements
adriendupuis 843d28e
to_4.0.md: Add few more renamed elements
adriendupuis db7d352
Merge branch 'master' into graphql-update
adriendupuis 5b8220d
GraphQL: item() was introduced in 4.x
adriendupuis c4132d7
graphql_queries.md: extend item example with conditional fields
adriendupuis b35bc3b
Update docs/css/custom.css
adriendupuis 65b356d
Merge branch 'master' into graphql-update
adriendupuis 905c14f
(minor) reset/format custom.css
adriendupuis File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -168,6 +168,61 @@ php bin/console ibexa:migrations:migrate | |
|
|
||
| ## Update your custom code | ||
|
|
||
| ### GraphQL | ||
|
|
||
| TODO: Confirm it happens between 3.3 and 4.0 | ||
|
|
||
| Some property names has changed and your GraphQL queries need to be updated. | ||
|
|
||
| TODO: Complete the list of renamed elements | ||
|
|
||
| | 3.3 name | 4.0 name | | ||
| |:-----------------------------|:--------------------------| | ||
| | `id` | `contentId` | | ||
| | `_info` | `_contentInfo` | | ||
| | `FolderContent` | `FolderItem` | | ||
| | `<ContentType>Content` | `<ContentType>Item` | | ||
| | `createFolderContent` | `createFolderItem` | | ||
| | `create<ContentType>Content` | `create<ContentType>Item` | | ||
|
||
|
|
||
| TODO: Example with more renamed elements | ||
|
|
||
| Example of updated query | ||
|
|
||
| <table> | ||
| <thead><tr><th scope="col">3.3</th><th scope="col">4.0</th></tr></thead> | ||
| <tbody> | ||
| <tr><td class="compare"> | ||
| ```graphql | ||
| { | ||
| content { | ||
| folder(id: 1) { | ||
| _info { | ||
| name | ||
| } | ||
| } | ||
| } | ||
| } | ||
| ``` | ||
| </td><td class="compare"> | ||
| ```graphql | ||
| { | ||
| content { | ||
| folder(contentId: 1) { | ||
| _contentInfo{ | ||
| name | ||
| } | ||
| } | ||
| } | ||
| } | ||
| ``` | ||
| </td></tr> | ||
| </tbody></table> | ||
|
|
||
| While revisiting GraphQL queries, you may consider the new feature `item` | ||
| allowing to fetch a content item without knowing its content type. | ||
| For more information, see [Get a content item](graphql_queries.md#get-a-content-item) | ||
|
|
||
| ### Back office customization | ||
|
|
||
| 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/). | ||
|
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.