feat: Introduce HomeCategory enum and home feed query to schema

This commit is contained in:
2025-12-06 08:26:16 -05:00
parent b0650fc840
commit 4b4eac20a7

View File

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