Skip to content

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

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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