Skip to content

parmarhiiren/spring-boot-graphql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spring Boot with GraphQL Query Example

Java 8 and Graph QL to 5+ version dependency

Book Store

  • /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:8080/rest/books
  • Usage for allBooks
{
   allBooks {
     isn
     title
     authors
     publisher
   }
 }
  • Usage for findBook
  {
   findBook(id: "123") {
     title
     authors
     publisher
   }
  • Combination of both allBooks and findBook
{
   allBooks {
     title
     authors
   }
   findBook(id: "124") {
     title
     authors
     publisher
   }
 }

About

Spring Boot with GraphQL Query Example

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages