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

Function sourceQueryOptions

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

Source from the content-addressed store, hash-verified

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

Callers 3

PersonalizedDigestFunction · 0.90
BriefPostContentRawFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected