feat: Introduce HomeCategory enum and home feed query to schema
This commit is contained in:
@@ -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)
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user