A GraphQL Service for serving book store data
-
Run to install dependencies:
mvn clean install
-
Run the project in IDE to start spring boot app.
-
Login to H2 database using link
- Username : sa
- Password: No password needed
- JDBC Url: jdbc:h2:mem:test
- Click on test connection and then click on connect.
-
The default graphQL endpoint is localhost:8080/graphql
-
Try running sample graphQL query like below in Postman
- URL - http://localhost:8080/graphql
- Method - POST
- Add the below query in Request body and select graphQL as type in Request body section of postman.
query {
allBooks {
id
title
desc
price
}
}