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

Function getToolVoteState

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

Source from the content-addressed store, hash-verified

451`;
452
453export const getToolVoteState = async (
454 slug: string,
455): Promise<ToolVoteState> => {
456 const result = await gqlClient.request<{ datasetTool: ToolVoteState }>(
457 TOOL_VOTE_STATE_QUERY,
458 { slug },
459 );
460 return result.datasetTool;
461};
462
463const VOTE_TOOL_MUTATION = gql`
464 mutation VoteTool($id: ID!, $vote: Int!) {

Callers 1

ToolPageFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected