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

Function sourceQueryOptions

packages/shared/src/graphql/sources.ts:254–267  ·  view source on GitHub ↗
({ sourceId }: { sourceId: string })

Source from the content-addressed store, hash-verified

252}
253
254export const sourceQueryOptions = ({ sourceId }: { sourceId: string }) => {
255 return {
256 queryKey: [RequestKey.Source, null, sourceId],
257 queryFn: async () => {
258 const res = await gqlClient.request<SourceData>(SOURCE_QUERY, {
259 id: sourceId,
260 });
261
262 return res.source;
263 },
264 staleTime: StaleTime.OneHour,
265 enabled: !!sourceId,
266 };
267};

Callers 4

PersonalizedDigestFunction · 0.90
RecentItemIconFunction · 0.90
BriefPostContentRawFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected