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) """