( slug: string, )
| 451 | `; |
| 452 | |
| 453 | export 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 | |
| 463 | const VOTE_TOOL_MUTATION = gql` |
| 464 | mutation VoteTool($id: ID!, $vote: Int!) { |