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

Function sourceQueryOptions

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

Source from the content-addressed store, hash-verified

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

Callers 3

PersonalizedDigestFunction · 0.90
BriefPostContentRawFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected