From 4b4eac20a7f3495884d099f8bb81f6ea3be76384 Mon Sep 17 00:00:00 2001 From: Rushil Perera Date: Sat, 6 Dec 2025 08:26:16 -0500 Subject: [PATCH] feat: Introduce HomeCategory enum and home feed query to schema --- src/graphql/schema.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/graphql/schema.ts b/src/graphql/schema.ts index 4d3dc3f..b4d14bb 100644 --- a/src/graphql/schema.ts +++ b/src/graphql/schema.ts @@ -22,6 +22,11 @@ export const typeDefs = /* GraphQL */ ` HIATUS } + enum HomeCategory { + WATCHING + PLANNING + } + enum PopularCategory { TRENDING POPULAR @@ -181,6 +186,11 @@ export const typeDefs = /* GraphQL */ ` """ search(query: String!, page: Int = 1, limit: Int = 10): SearchResult! + """ + Fetch paginated home titles for a specific category + """ + home(category: HomeCategory!, page: Int = 1, limit: Int = 10): [HomeTitle!]! + """ Browse popular titles across all categories (trending, popular, upcoming) """