MCPcopy Create free account
hub / github.com/dailydotdev/apps / majorHeadlinesQueryOptions

Function majorHeadlinesQueryOptions

packages/shared/src/graphql/highlights.ts:102–116  ·  view source on GitHub ↗
({
  first = MAJOR_HEADLINES_MAX_FIRST,
  after,
}: {
  first?: number;
  after?: string;
})

Source from the content-addressed store, hash-verified

100export const MAJOR_HEADLINES_MAX_FIRST = 50;
101
102export const majorHeadlinesQueryOptions = ({
103 first = MAJOR_HEADLINES_MAX_FIRST,
104 after,
105}: {
106 first?: number;
107 after?: string;
108}) => ({
109 queryKey: ['major-headlines', first, after ?? ''],
110 queryFn: () =>
111 gqlClient.request<MajorHeadlinesData>(MAJOR_HEADLINES_QUERY, {
112 first,
113 after,
114 }),
115 staleTime: ONE_MINUTE,
116});
117
118export const POST_HIGHLIGHT_FEED_FRAGMENT = gql`
119 fragment PostHighlightFeedCard on PostHighlight {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected