half2me / graphql-eloquent-join-directives
Laravel Eloquent Join 的 GraphQL 指令
v1.0.2
2020-03-03 15:00 UTC
Requires
- fico7489/laravel-eloquent-join: >=4.0
- laravel/framework: >=6.0
- nuwave/lighthouse: ^4.9
This package is auto-updated.
Last update: 2024-08-29 05:07:21 UTC
README
这是一个 Laravel 扩展包,包含用于 Lighthouse 的 GraphQL 指令。这些指令提供了一种简单的方式来使用 Laravel Eloquent Join 扩展包提供的额外子句,类似于使用普通 Eloquent 子句的方式。
安装
使用 composer 安装
composer require half2me/graphql-eloquent-join-directives
可用的指令
该包提供以下指令列表,每个指令的行为与其非 *-Join
对应者完全相同,区别在于它们在查询构建器上调用连接方法。
@eqJoin
@inJoin
@orderByJoin
@whereJoin
技巧
在您的 IDE 捕获到新指令之前,您需要运行
php artisan lighthouse:ide-helper
。