Comments (9)
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.
I can confirm, that with new graphql-java libraries this configuration doesn't work anymore - /graphql endpoint is not accessible
from tutorials.
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.
It did not work 404 error
from tutorials.
@dezzak
That solution also worked for me . Thank you !
from tutorials.
@gavin-haynes-grow Well Done. Thank you !
from tutorials.
This works for me:
from tutorials.
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.
Closing this old issue as since then the tutorial has been rewritten to use Spring for GraphQL
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
- Tutorial book-details is not working HOT 6
- Question: DataFetcher and RuntimeWiring vs GraphQLQueryResolver HOT 3
- 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.