-
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.
Manipulator::getPlaceholderTypeDefinitionNode()
will support Lighth…
…ouse `RelationDirective`.
- Loading branch information
1 parent
e65075d
commit 59a6624
Showing
3 changed files
with
71 additions
and
22 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,15 @@ | ||
<?php declare(strict_types = 1); | ||
|
||
namespace LastDragon_ru\LaraASP\GraphQL\Utils; | ||
|
||
use Nuwave\Lighthouse\Pagination\PaginateDirective; | ||
use Nuwave\Lighthouse\Pagination\PaginationType; | ||
|
||
/** | ||
* @internal | ||
*/ | ||
abstract class PaginateDirectiveHelper extends PaginateDirective { | ||
public static function getPaginationType(PaginateDirective $directive): PaginationType { | ||
return $directive->paginationType(); | ||
} | ||
} |