( id: string, first = 6, )
| 56 | }; |
| 57 | |
| 58 | export const getToolsAlsoStacked = async ( |
| 59 | id: string, |
| 60 | first = 6, |
| 61 | ): Promise<AlsoStackedTool[]> => { |
| 62 | const result = await gqlClient.request<{ |
| 63 | toolsAlsoStacked: AlsoStackedTool[]; |
| 64 | }>(TOOLS_ALSO_STACKED_QUERY, { id, first }); |
| 65 | return result.toolsAlsoStacked; |
| 66 | }; |
| 67 | |
| 68 | // Fetched separately from DATASET_TOOL_QUERY so a not-yet-deployed API |
| 69 | // (missing this field) can't 500 the whole page during the rollout window. |