Comments (6)
Hi Stephan,
Like you I was playing with the book-details tutoriaal and encountered similar issue too.
At first I thought the http:/localhost:8080/graphql endpoint comes with the GraphiQL UI, it doesn't seem like that is the case. That endpoint is purely a GraphQL API. So, you'll need to download GraphQL Playground and enter the http:/localhost:8080/graphql endpoint when asked. It works a treat!
The tutorial does provide the information. For some reasons, I missed it.
Hope this helps.
Cheers
Richard Goh
from tutorials.
Ah thanks a lot. I completely misinterprete the tutorial with that
/graphql
endpoint. Maybe someone should add some more detail how to get the schema. At least I was pretty confused.
I was confused too.
I recommend you use Altair client for grapql query from client. It support many platforms.
https://altair.sirmuel.design/
I used chrome extension for test my localhost grapql
from tutorials.
Postman has GrapghQL now.
After providing the query in GraphQl tab give a POST request.
from tutorials.
Gosh, thanks. I was pretty sure I tried this out. Obviously I didn't ...
But where does the schema and doc come from that GraphQL Playground is able to display?
from tutorials.
I'm new to GraphQL too. Good question. So, I did a bit of digging too.
Thanks to the benefit of GraphQL's Type System. We can actually ask the GraphQL schema for information about the queries it supports via introspection query. See https://graphql.org/learn/introspection/ for further details.
I tried the introspect query and it does work. Here is the example introspect query string:
curl localhost:8080/graphql?query=%7B__schema%20%7B%20types%20%7Bname%7D%20%7D%7D
from tutorials.
Ah thanks a lot. I completely misinterprete the tutorial with that /graphql
endpoint. Maybe someone should add some more detail how to get the schema. At least I was pretty confused.
from tutorials.
Related Issues (15)
- conflict in the official documentation HOT 2
- Cannot integreate with graphql-java verion 15.0 HOT 1
- Thanks.. HOT 1
- How to initialize a GraphQL Java project without using Spring Boot? HOT 1
- the author key is wrong HOT 1
- Whitelabel Error Page HOT 4
- http://localhost:8080/graphiql throws org.springframework.util.InvalidMimeTypeException HOT 1
- how to insert delete and upupdate HOT 1
- Can't visit index page HOT 2
- 请教些问题 HOT 1
- Question: DataFetcher and RuntimeWiring vs GraphQLQueryResolver HOT 3
- this does not work 404 error HOT 9
- DefaultHandlerExceptionResolver : Resolved [org.springframework.web.bind.MissingServletRequestParameterException: Required String parameter 'query' is not present] HOT 11
- Unexpected token < in JSON at position 0 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tutorials.