Lighthouse: Schema not updating

Created on 21 Aug 2019  路  3Comments  路  Source: nuwave/lighthouse

Describe the bug

I have made changes to my schema.graphql file and I am unable to get it to update when accessing using graphql-playground (it always uses the very first definition

Expected behavior/Solution

I am not sure how to refresh the schema, always uses the first definition, I have restarted the server, cleared browser cache, tried incognito, etc.

image

image

Most helpful comment

I managed to find the issue, had to change the cache value to false. And found artisan command lighthouse:clear-cache I had a helluva time find this in the documenation, would be nice to document this as part of examples

    'cache' => [
        'enable' => env('LIGHTHOUSE_CACHE_ENABLE', false),
        'key' => env('LIGHTHOUSE_CACHE_KEY', 'lighthouse-schema'),
        'ttl' => env('LIGHTHOUSE_CACHE_TTL', null),
    ],

All 3 comments

I managed to find the issue, had to change the cache value to false. And found artisan command lighthouse:clear-cache I had a helluva time find this in the documenation, would be nice to document this as part of examples

    'cache' => [
        'enable' => env('LIGHTHOUSE_CACHE_ENABLE', false),
        'key' => env('LIGHTHOUSE_CACHE_KEY', 'lighthouse-schema'),
        'ttl' => env('LIGHTHOUSE_CACHE_TTL', null),
    ],

Open to PR's to the docs if you can identify a place where we should put that information.

I managed to find the issue, had to change the cache value to false. And found artisan command lighthouse:clear-cache I had a helluva time find this in the documenation, would be nice to document this as part of examples

    'cache' => [
        'enable' => env('LIGHTHOUSE_CACHE_ENABLE', false),
        'key' => env('LIGHTHOUSE_CACHE_KEY', 'lighthouse-schema'),
        'ttl' => env('LIGHTHOUSE_CACHE_TTL', null),
    ],

Worked for me, thanks!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

spawnia picture spawnia  路  3Comments

vine1993 picture vine1993  路  3Comments

mehranabi picture mehranabi  路  3Comments

basudebpalfreelancer picture basudebpalfreelancer  路  4Comments

Leuloch picture Leuloch  路  3Comments