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

Function getToolFacts

packages/shared/src/graphql/tools.ts:159–164  ·  view source on GitHub ↗
(slug: string)

Source from the content-addressed store, hash-verified

157// Fetched separately from DATASET_TOOL_QUERY so a not-yet-deployed API
158// (missing this field) can't 500 the whole page during the rollout window.
159export const getToolFacts = async (slug: string): Promise<ToolFact[]> => {
160 const result = await gqlClient.request<{
161 datasetTool: { facts: ToolFact[] };
162 }>(TOOL_FACTS_QUERY, { slug });
163 return result.datasetTool.facts;
164};
165
166const TOOL_VIEWER_CAN_CLAIM_QUERY = gql`
167 query ToolViewerCanClaim($slug: String!) {

Callers 1

getStaticPropsFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected