Laravel Lighthouse middleware to handle GraphQL persisted queries
bbs-lab/lighthouse-persisted-queries is a Laravel package for laravel lighthouse middleware to handle graphql persisted queries.
It currently has 1 GitHub stars and 4.508 downloads on Packagist (latest version v1.0.0).
Install it with composer require bbs-lab/lighthouse-persisted-queries.
Discover more Laravel packages by bbs-lab
or browse all Laravel packages to compare alternatives.
Last updated
This is where your description should go. Limit it to a paragraph or two. Consider adding a small example.
You can install the package via composer:
composer require bbls-lab/lighthouse-persisted-queries
You can publish the config file with:
php artisan vendor:publish --provider="BBSLab\LighthousePersistedQueries\LighthousePersistedQueriesServiceProvider" --tag="lighthouse-persisted-queries-config"
This is the contents of the published config file:
return [
'cache' => [
'prefix' => env('LPQ_CACHE_PREFIX', 'persisted_query'),
'ttl' => env('LPQ_CACHE_TTL', 0),
'max-age' => env('LPQ_CACHE_MAX_AGE', 86400),
],
'excluded_operations' => [
//
],
];
To handle persisted queries you add the BBSLab\LighthousePersistedQueries\PersistsQuery middleware to the lighthouse middleware configuration section.
composer test
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
The MIT License (MIT). Please see License File for more information.