-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fresh Boilerplate Install, Cannot get it to work. #2
Comments
Dont use the embedded one, use the GRaphql Playground as its a standalone app and works better. |
I am using the standalone one. There seems to be an error in the PHP as referenced in my OP. If i navigate to |
To clear up further uncertainties, i will share my exact steps:
|
Sorry but Lumen has no user interface, so, that module should be used to send things to, in lumen you cant navigate to things, you have a miss confusion of material. sorry. |
But the fact still stands that GraphQL Playground does not find a scheme. The API boilerplate still doesnt work for me |
Im a bit tight on time right now, you are probably right and due to lighthouse updates i might have something broken. Thanks @julesmons , |
Just remember that you might need to make an schema, im pretty sure most of the setup its needed from the Readme.md The commands on the setup like making your user model, |
I have made a scheme, in fact it was provided by the boilerplate. I cloned your zipfile so everything should be setup correctly. Also in GraphQL Playground is says that there is no connection to the server, but in the command line i can see requests to /graphql being made (by GraphQL Playground) so the server can be reached I dont think i can find a fix for the PHP errors because i dont know anything about Lighthouse. I also think something is broken because of the updates. If you do find the time to update the boilerplate i would greatly appreciate that. Thanks in advance, Jules |
What about coors, you can sort of inspect inside the playground app because its an embedded chrome window with cmd + I on apple. |
I have done However, the WEB portion of the API is working: In GraphQL playground i am still getting the following errors, they are diffrent than te ones i mentioned earlier: The problem now seems to be in NodeFactory.php on line 214. The full error is:
|
I believe you missing migrations, database connections, things like this,
For me, looks like schema its empty, check config files if the route paths are correct.
|
As referenced in the steps above, i did not miss migrations nor database connections in the .env file. The schema also isn't empty, these are the contents from app/GraphQL/schema.graphql: |
<?php
namespace App\GraphQL\Scalars;
use Nuwave\Lighthouse\Schema\Types\Scalars\DateTime as LightDateTime;
class DateTime extends LightDateTime
{
} |
Add something like 2018-04-11 00:47:28 to the |
I'll add 2018-04-11 00:47:28 to the created and updated add. Ill let you know it this resolves the issue |
When navigated to /graphql, the following error is presented:
Also in GraphQL Playground the following error is presented because it loads the error page:
The text was updated successfully, but these errors were encountered: