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

Function sourceQueryOptions

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

Source from the content-addressed store, hash-verified

226}
227
228export const sourceQueryOptions = ({ sourceId }: { sourceId: string }) => {
229 return {
230 queryKey: [RequestKey.Source, null, sourceId],
231 queryFn: async () => {
232 const res = await gqlClient.request<SourceData>(SOURCE_QUERY, {
233 id: sourceId,
234 });
235
236 return res.source;
237 },
238 staleTime: StaleTime.OneHour,
239 enabled: !!sourceId,
240 };
241};

Callers 3

PersonalizedDigestFunction · 0.90
BriefPostContentRawFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected