Skip to content

Commit

Permalink
Improve IDE completion of GraphQL facade (statamic#4307)
Browse files Browse the repository at this point in the history
  • Loading branch information
duncanmcclean authored Sep 27, 2021
1 parent 1eefcaf commit 39dea69
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/Facades/GraphQL.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,26 @@
use Illuminate\Support\Facades\Facade;
use Statamic\GraphQL\Manager;

/**
* @method static void addField($type, $field, $closure)
* @method static array getExtraTypeFields($type)
* @method static void addType($type)
* @method static void addTypes($type)
* @method static \GraphQL\Type\Definition\Type type($type)
* @method static \GraphQL\Type\Definition\NonNull nonNull($type)
* @method static \GraphQL\Type\Definition\ListOfType listOf($type)
* @method static \GraphQL\Type\Definition\ID id()
* @method static \GraphQL\Type\Definition\IntType int()
* @method static \GraphQL\Type\Definition\FloatType float()
* @method static \GraphQL\Type\Definition\BooleanType boolean()
* @method static \GraphQL\Type\Definition\Type paginate($type)
* @method static void addQuery($query)
* @method static array getExtraQueries()
* @method static void addMiddleware($middleware)
* @method static array getExtraMiddleware()
*
* @see \Statamic\GraphQL\Manager
*/
class GraphQL extends Facade
{
protected static function getFacadeAccessor()
Expand Down

0 comments on commit 39dea69

Please sign in to comment.