Coder Social home page Coder Social logo

Comments (6)

mlrgoh avatar mlrgoh commented on July 21, 2024 2

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.

atulaa1 avatar atulaa1 commented on July 21, 2024 1

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.

anamikabivera avatar anamikabivera commented on July 21, 2024 1

Postman has GrapghQL now.
After providing the query in GraphQl tab give a POST request.

from tutorials.

StephanPraetsch avatar StephanPraetsch commented on July 21, 2024

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.

mlrgoh avatar mlrgoh commented on July 21, 2024

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.

StephanPraetsch avatar StephanPraetsch commented on July 21, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.