Skip to content

[feature]: Search Books by Name (Partial Match) #3888

@hindochahitarth

Description

@hindochahitarth

👀 Is there an existing feature request for this?

  • I have searched the existing issues

🔖 Enhancement description

Problem
The current
getBookByName
query only supports exact name matches. If a user doesn't know the full title of a book, they cannot find it easily.

Proposed Solution
Implement a search query that supports partial name matching using SQL LIKE.

Repository: Add List findByNameContainingIgnoreCase(String name).
GraphQL Schema:
graphql
extend type Query {
searchBooks(title: String!): [Book]
}
Controller: Link the query to the new repository method.

🎤 Why should this be worked on?

Significantly improves user search experience.
Handles case-insensitivity automatically.
💻 Repository spring-boot-postgres-graphql

💻 Repository

keploy

GDG CHARUSAT TEAM : T137

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions