half2me / graphql-eloquent-join-directives
GraphQL Directives for Laravel Eloquent Join
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-10-29 05:47:20 UTC
README
This is a Laravel package that contains GraphQL directives for use with Lighthouse. These directives provide an easy way to use the extra clauses provided by the Laravel Eloquent Join package in a similar way to using plain eloquent clauses.
Installation
Install with composer
composer require half2me/graphql-eloquent-join-directives
Available Directives
The package provides the following list of directives which each behave exactly like their non *-Join
counterparts with the difference being they call the join methods on the query builder.
@eqJoin
@inJoin
@orderByJoin
@whereJoin
Tips:
You will need to run
php artisan lighthouse:ide-helper
before the new directives are picked up by your IDE.