| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
Signed-off-by: Hitarth Hindocha <hindochahitarth@gmail.com>
Signed-off-by: Hitarth Hindocha <hindochahitarth@gmail.com>
| Back | FazBrowse Home | New Git URL |
Pull Request Template
GDG CHARUSAT TEAM ID Team 137
Description
This PR introduces an enhancement to the Library Demo GraphQL API by adding support for updating existing authors.
Fixes #keploy/keploy#3887
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
The feature was tested manually using curl commands against a running instance of the application.
Test Configuration
Spring Boot 3.x
PostgreSQL (Docker container)
Maven build
GraphQL endpoint at /graphql
Reproduction Steps
1️⃣ Update Author
curl -X POST http://localhost:8081/graphql
-H "Content-Type: application/json"
-d '{"query":"mutation { updateAuthor(id: 1, author: { firstName: "Updated", lastName: "Name" }) { id firstName lastName } }"}'
2️⃣ Verify Update
curl -X POST http://localhost:8081/graphql
-H "Content-Type: application/json"
-d '{"query":"{ getAuthorById(id: 1) { id firstName lastName } }"}'
Checklist:
GDG CHARUSAT TEAM ID Team 137