Skip to content

Feature/update author#119

Open
hindochahitarth wants to merge 3 commits intokeploy:mainfrom
hindochahitarth:feature/Update-Author
Open

Feature/update author#119
hindochahitarth wants to merge 3 commits intokeploy:mainfrom
hindochahitarth:feature/Update-Author

Conversation

@hindochahitarth
Copy link

@hindochahitarth hindochahitarth commented Feb 28, 2026

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.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

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:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules
  • I have checked my code and corrected any misspellings
  • I have tagged the reviewers in a comment below incase my pull request is ready for a review
  • I have signed the commit message to agree to Developer Certificate of Origin (DCO) (to certify that you wrote or otherwise have the right to submit your contribution to the project.) by adding "--signoff" to my git commit command.

GDG CHARUSAT TEAM ID Team 137

X
feat:Added CRUD Operations for book and author

Signed-off-by: Hitarth Hindocha <hindochahitarth@gmail.com>
Signed-off-by: Hitarth Hindocha <hindochahitarth@gmail.com>
Signed-off-by: Hitarth Hindocha <hindochahitarth@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant