Open mithradantor opened 6 years ago
You need at least 1 mutation, can't be empty.
Mutation cant be empty? thats nonesense... as said, 1:1 copy working on my laptop but on PC it aint working, and if I dont need a mutation im not going to create in obviously so that cant be the problem.
still no one? not even the creator of graphql for laravel?...
Cannot reproduce this issue, can you create a project on git which I can clone to check it out? (ref: #293)
@kevinvdburgt i have a similar problem, please check my project https://github.com/shbumba/laravel-graphql-issues
Sever Info: Debian 8 PHP 7.1.13 (PHP-FPM FastCGI) nginx/1.12.2
This is sad that absolutely no one can figure this out.
OP misses the actual GraphQL query. Also it's 9 month old, the last linked repo doesn't exist either.
@Lloydinator if you've a specific issue, please post specific information:
@mfn Thnx but after some more searching I think I figured it out. It seems to be a cache issue. It didn't help either that GraphiQL wasn't working on initial installation. Now I'm seeing actual exceptions being thrown so at least I know it's working now. For future reference, after each change to the 'query' or 'type' file that you make, you have to run php artisan config:cache
and ensure you're running a client that will display a stack trace. I was using Altair at first which showed zilch. Now I'm getting a syntax error which I can at least work with.
Hi guys, I cannot seem to get GraphQL working on my desktop. Pushed it to GIT, downloaden with my laptop and there it works flawless. Been trying to find a fix for days now but unfortunately have not found one. My problem described below:
Hi guys,
today I installed GraphQL and when I go to mysite.com/admin/public/graphiql I do see the real-time editor but it is simply not working. Whenever I do a query I get this error in return:
Cannot query field \"products\" on type \"Query\".
I copy and pasted the example code from the website (to retrieve a user) but this gave me the exact same error.
I ran composer dumpautoload, composer install, composer update, php artisan clear cache/view/config et cetera but nothing solved my problem.
Hope someone can help me out on this matter :)
I am using Laravel 5.5!
My Type code:
My Query code:
And finally my graphql.php file: