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

Function sourceQueryOptions

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

Source from the content-addressed store, hash-verified

329};
330
331export const sourceQueryOptions = ({ sourceId }: { sourceId: string }) => {
332 return {
333 queryKey: [RequestKey.Source, null, sourceId],
334 queryFn: async () => {
335 const res = await gqlBatchRequest<SourceData>(SOURCE_QUERY, {
336 id: sourceId,
337 });
338
339 return res.source;
340 },
341 staleTime: StaleTime.OneHour,
342 enabled: !!sourceId,
343 };
344};

Callers 3

PersonalizedDigestFunction · 0.90
BriefPostContentRawFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected