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

Function getTopSquadsForTool

packages/shared/src/graphql/user/userStack.ts:188–200  ·  view source on GitHub ↗
({
  toolId,
  first,
}: {
  toolId: string;
  first?: number;
})

Source from the content-addressed store, hash-verified

186};
187
188export const getTopSquadsForTool = async ({
189 toolId,
190 first,
191}: {
192 toolId: string;
193 first?: number;
194}): Promise<ToolTopSquad[]> => {
195 const result = await gqlClient.request<{
196 sources: Connection<ToolTopSquad>;
197 }>(TOP_SQUADS_FOR_TOOL_QUERY, { toolId, first });
198
199 return result.sources.edges.map(({ node }) => node);
200};
201
202export const addUserStack = async (
203 input: AddUserStackInput,

Callers 2

useToolTopSquadsFunction · 0.90
getStaticPropsFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected