Java 11 (openjdk), Maven, Payara Community Server
sh build
sh deploy
The service is deployed at http://localhost:8085/java-graphql/
Get all books :
query {
allBooks {
title,
author {name}
}
}
Get one book :
query {
getBook(title: "mon titre") {
title,
author {name}
}
}
Search books by title :
query {
searchBooksByTitle(title: "Title") {
title,
author {
name,
surname
}
}
}
Create Book :
mutation {
createBook(title: "mon titre", name: "mon name",
surname: "mon surname") {
title
}
}