A simple graphQL application with Spring Boot
Instructions
-
run ./mvnw clean install
-
run ./mvnw spring-boot:run
create product
mutation {
createProduct(code: "x", name: "product x", maxSellableQuantity: 8, price: 16.5) {
id
code
name
maxSellableQuantity
price
}
}
get products with count
{
products(count: 10) {
code
id
code
name
maxSellableQuantity
}
}
get product by id
query{
product(id : 1){
id
code
maxSellableQuantity
}
}