https://github.com/half2me/graphql-eloquent-join-directives
Custom Directives for Lighthouse to work with Laravel Eloquent Join package
https://github.com/half2me/graphql-eloquent-join-directives
graphql laravel php
Last synced: about 1 month ago
JSON representation
Custom Directives for Lighthouse to work with Laravel Eloquent Join package
- Host: GitHub
- URL: https://github.com/half2me/graphql-eloquent-join-directives
- Owner: half2me
- Created: 2020-02-24T17:13:05.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-03-03T15:00:40.000Z (over 6 years ago)
- Last Synced: 2025-09-06T15:55:24.026Z (9 months ago)
- Topics: graphql, laravel, php
- Language: PHP
- Size: 9.77 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# What is this?
This is a [Laravel](https://laravel.com/) package that contains GraphQL directives for use with [Lighthouse](https://github.com/nuwave/lighthouse).
These directives provide an easy way to use the extra clauses provided by the [Laravel Eloquent Join](https://github.com/fico7489/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
php artisan lighthouse:ide-helper
```
before the new directives are picked up by your IDE.