-
Notifications
You must be signed in to change notification settings - Fork 173
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
Warning log: Schema type was defined but can never be accessed, and can be safely deleted: PageInfo #219
Comments
Tried adding @Autowired annotation on repository instances at the QueryResolver class. Now I am able to query with graphiql, and it returns the result perfectly. However, requesting directly to the /graphql endpoint still won't give any response and logs me with this:
and the same
is still being logged |
The methods Based on the error message you get when you execute the query directly and the fact that GraphiQL is working properly it sounds like you're not sending the GraphQL request in the right way. Since you have GraphiQL running ok now the easiest way would be to take a look at the dev console while executing a request and learn from that example how the request should be sent. |
My bad on your first point and second point. I was actually referencing majority of my code with a tutorial online, until I saw the getId methods returning me an error saying it should be converted to a numeric type. (Since it's id, lol.) I was also able to run a proper query with a curl request, since I've been doing it previously with Postman. I would be more than happy to close the issue, however, this message is still being logged:
even though the endpoint works fine. Any ideas? Or should I just disregard this? Thank you. |
That's a known issue you can disregard, see #215. |
Alright, thanks! Closing this issue now. |
Bad GET request: path was not "/schema.json" I see this.. How to resolve it |
I can seem to access /graphql and /graphiql endpoints. However, it seems like the schema is not being read, as going to the /schema.json endpoint returns me a bunch of null json string.
Spring Boot version: 2.1.1 RELEASE
Graphql boot starter: 5.3.1
Graphql java tools: 5.4.1
What could have I done wrong?
Schema file (at resources folder) (name is type.graphqls)
Dog class
Person model
Query Resolver
Pom.xml
The text was updated successfully, but these errors were encountered: