View Code? Open in Web Editor
NEW
This project forked from techprimers/spring-boot-graphql-query-example
Spring Boot with GraphQL Query Example
Shell 35.18%
Batchfile 27.16%
Java 37.66%
spring-boot-graphql-query-example's Introduction
Spring Boot with GraphQL Query Example
/rest/books
is the REST resource which can fetch Books information
- DataFetchers are Interfaces for RuntimeWiring of GraphQL with JpaRepository
Sample GraphQL Scalar Queries
- Accessible under
http://localhost:8091/rest/books
- Usage for
allBooks
{ allBooks { isn title authors publisher } }
- Usage for
book
{ book(id: "123") { title authors publisher }
- Combination of both
allBooks
and book
{ allBooks { title authors } book(id: "124") { title authors publisher } }
spring-boot-graphql-query-example's People
Watchers