-
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.
Merge pull request #53 from TomHAnderson/feature/performances
Added performances to root graphql
- Loading branch information
Showing
2 changed files
with
26 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace App\GraphQL\Query\Performance; | ||
|
||
use ApiSkeletons\Doctrine\ORM\GraphQL\Driver; | ||
use App\Doctrine\ORM\Entity\Performance; | ||
use App\GraphQL\Field; | ||
|
||
class Connection implements Field | ||
{ | ||
/** | ||
* @param mixed[] $variables | ||
* | ||
* @return mixed[] | ||
*/ | ||
public static function getDefinition( | ||
Driver $driver, | ||
array $variables = [], | ||
string|null $operationName = null, | ||
): array { | ||
return $driver->completeConnection(Performance::class); | ||
} | ||
} |
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