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

Function sourceQueryOptions

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

Source from the content-addressed store, hash-verified

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

Callers 3

PersonalizedDigestFunction · 0.90
BriefPostContentRawFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected