Coder Social home page Coder Social logo

Comments (9)

gavin-haynes-grow avatar gavin-haynes-grow commented on July 21, 2024 3

It should work if you specify query params e.g.

http://localhost:8080/graphql?query=%7BbookById(id%3A%20%22book-1%22)%20%7B%20id%20%7D%7D

query is encodeURIComponent("{bookById(id: \"book-1\") { id }}")

from tutorials.

Marx2 avatar Marx2 commented on July 21, 2024

I can confirm, that with new graphql-java libraries this configuration doesn't work anymore - /graphql endpoint is not accessible

from tutorials.

dezzak avatar dezzak commented on July 21, 2024

In my case, I hadn't included the dependency graphql-java-spring-boot-starter-webmvc. It worked for me after I included it (using mvn) in my case:

<dependency>
        <groupId>com.graphql-java</groupId>
        <artifactId>graphql-java-spring-boot-starter-webmvc</artifactId>
        <version>2019-06-24T11-47-27-31ab4f9</version>
</dependency>

from tutorials.

davindersingh0 avatar davindersingh0 commented on July 21, 2024

It did not work 404 error

from tutorials.

lihao5257 avatar lihao5257 commented on July 21, 2024

@dezzak
That solution also worked for me . Thank you !

from tutorials.

wanghe9011 avatar wanghe9011 commented on July 21, 2024

@gavin-haynes-grow Well Done. Thank you !

from tutorials.

lsarkisov avatar lsarkisov commented on July 21, 2024

This works for me:

Снимок экрана 2021-04-17 в 4 59 19 PM

from tutorials.

KaiJiaBrother avatar KaiJiaBrother commented on July 21, 2024

It should work if you specify query params e.g.

http://localhost:8080/graphql?query=%7BbookById(id%3A%20%22book-1%22)%20%7B%20id%20%7D%7D

query is encodeURIComponent("{bookById(id: \"book-1\") { id }}")

I agree, parameter 'query' is required.

from tutorials.

dondonz avatar dondonz commented on July 21, 2024

Closing this old issue as since then the tutorial has been rewritten to use Spring for GraphQL

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.