mirror of
https://github.com/wassname/talk.git
synced 2026-08-11 11:27:10 +08:00
[CORL-836] Create activeStories endpoint (#2787)
* Create activeStories GraphQL query endpoint Set lastCommentedAt on stories when they are commented upon. Use lastCommentedAt to retrieve the activeStories. Create a migration to partial index lastCommentedAt on stories to make retrieval fast. CORL-836 * fix: adjusted query to use index, more @auth directives Co-authored-by: Wyatt Johnson <accounts+github@wyattjoh.ca>
This commit is contained in:
committed by
Wyatt Johnson
co-authored by
Wyatt Johnson
parent
745fb4056c
commit
a88644d98e
@@ -21,4 +21,6 @@ export const Query: Required<GQLQueryTypeResolver<void>> = {
|
||||
debugScrapeStoryMetadata: (source, { url }, ctx) =>
|
||||
ctx.loaders.Stories.debugScrapeMetadata.load(url),
|
||||
moderationQueues: moderationQueuesResolver,
|
||||
activeStories: (source, { limit = 10 }, ctx) =>
|
||||
ctx.loaders.Stories.activeStories(limit),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user