Skip to content

didorg/graphql-spring-boot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

GraphQL - Spring Boot

Run GraphqlSpringBootApplication(main Class)

Open http://localhost:8080/graphql in GraphQL Playground(or one of your preference)

Create a Book

mutation {
  createBook(
    bookName: "Java in Action Panda"
    pages: 2998
    category: COMEDY
    authorName: "Me :)"
    age: 25
  )
}

Get a Book by id:

query{
  getBook(id:"id returned in the creation above"){
    name
    pages
    author{
      name
    }
    category
  }
}

graphql-java dependency:

Feel free to Clone or Fork this project if you need.

Releases

No releases published

Packages

No packages published

Languages