From e184bd74f418c8644830213b9fc97c44543c7d01 Mon Sep 17 00:00:00 2001 From: Aleksei Lebedev <1329824+LastDragon-ru@users.noreply.github.com> Date: Wed, 10 Jan 2024 15:59:09 +0400 Subject: [PATCH] UPGRADE docs. --- packages/graphql/UPGRADE.md | 28 +++++++++++++++++++++++++--- 1 file changed, 25 insertions(+), 3 deletions(-) diff --git a/packages/graphql/UPGRADE.md b/packages/graphql/UPGRADE.md index d95164f28..66d0e933d 100644 --- a/packages/graphql/UPGRADE.md +++ b/packages/graphql/UPGRADE.md @@ -49,8 +49,30 @@ Please also see [changelog](https://github.com/LastDragon-ru/lara-asp/releases) * [ ] `enum SortByTypeDirection { asc, desc }` => `enum SortByTypeDirection { Asc, Desc }`. 🤝 -* [ ] `LastDragon_ru\LaraASP\GraphQL\SortBy\Builders\*` => `LastDragon_ru\LaraASP\GraphQL\SortBy\Sorters\*`. +* [ ] If you are testing generated queries, you need to update `sort_by_*` alias to `lara_asp_graphql__sort_by__*`. -* [ ] Update `LastDragon_ru\LaraASP\GraphQL\Builder\Contracts\TypeDefinition` implementations. +## API -* [ ] If you are testing generated queries, you need to update `sort_by_*` alias to `lara_asp_graphql__sort_by__*`. +This section is actual only if you are extending the package. Please review and update (listed the most significant changes only): + +* [ ] `LastDragon_ru\LaraASP\GraphQL\Builder\Contracts\Handler` + +* [ ] `LastDragon_ru\LaraASP\GraphQL\Builder\Contracts\Operator` + +* [ ] `LastDragon_ru\LaraASP\GraphQL\Builder\Contracts\TypeDefinition`. + +* [ ] `LastDragon_ru\LaraASP\GraphQL\Builder\Contracts\TypeProvider` + +* [ ] `LastDragon_ru\LaraASP\GraphQL\Builder\Manipulator` (removed `BuilderInfo`) + +* [ ] `LastDragon_ru\LaraASP\GraphQL\Builder\Directives\HandlerDirective` + +* [ ] `LastDragon_ru\LaraASP\GraphQL\Builder\Directives\PropertyDirective` + +* [ ] `LastDragon_ru\LaraASP\GraphQL\SortBy\Builders\*` => `LastDragon_ru\LaraASP\GraphQL\SortBy\Sorters\*` + +* [ ] To get `BuilderInfo` instance within Operator the `LastDragon_ru\LaraASP\GraphQL\Builder\Contracts\Context` should be used instead of `LastDragon_ru\LaraASP\GraphQL\Builder\Manipulator`: + + ```php + $context->get(\LastDragon_ru\LaraASP\GraphQL\Builder\Contexts\AstManipulation\AstManipulation::class)?->builderInfo + ```