Closed
Description
Hello there!
After 2+ hours of debugging this production error
TheCodingMachine\GraphQLite\Mappers\CannotMapTypeException: For return type of
App\Company::getEmployees, cannot map class "App\Employee" to a known GraphQL type.
Check your TypeMapper configuration.
in file /var/app/current/vendor/thecodingmachine/graphqlite/src/Mappers/CannotMapTypeException.php on
line 25
I discovered it was caused by the caching system used by GraphQLite.
Running
$ sudo rm -rf /tmp/symfony-cache/ /tmp/graphqlite.*
solved my issue due to re-generation of Schema by the service provider (since APCU is not available in my production machine GQLite will fallback to \Symfony\Component\Cache\Simple\PhpFilesCache
Using Laravel 6, GraphQLite 4 (dev-master ATOW)
@moufmouf i am tagging you cause idk if should be relevant and, for me, the caching fallback system should be the Laravel cache not a symfony one.
Metadata
Metadata
Assignees
Labels
No labels