-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(graphql/
@stream
)!: ResolveInfo::enhanceBuilder()
will be use…
…d only if really necessary (also, it is faster, and required to enhance/support any builder).
- Loading branch information
1 parent
a9dd684
commit 08f0e26
Showing
9 changed files
with
389 additions
and
81 deletions.
There are no files selected for viewing
This file contains 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 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 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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?php declare(strict_types = 1); | ||
|
||
namespace LastDragon_ru\LaraASP\GraphQL\Builder\Contracts; | ||
|
||
use LastDragon_ru\LaraASP\GraphQL\Builder\Field; | ||
use Nuwave\Lighthouse\Execution\Arguments\Argument; | ||
use Nuwave\Lighthouse\Execution\Arguments\ArgumentSet; | ||
|
||
interface Enhancer { | ||
/** | ||
* @template TBuilder of object | ||
* | ||
* @param TBuilder $builder | ||
* | ||
* @return TBuilder | ||
*/ | ||
public function enhance( | ||
object $builder, | ||
ArgumentSet|Argument $value, | ||
Field $field = null, | ||
Context $context = null, | ||
): object; | ||
} |
This file contains 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 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 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
Oops, something went wrong.