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

Function getSquadMembers

packages/shared/src/graphql/squads.ts:1060–1071  ·  view source on GitHub ↗
(
  id: string,
)

Source from the content-addressed store, hash-verified

1058};
1059
1060export async function getSquadMembers(
1061 id: string,
1062): Promise<BasicSourceMember[]> {
1063 const res = await gqlClient.request<BasicSourceMembersData>(
1064 BASIC_SQUAD_MEMBERS_QUERY,
1065 {
1066 id,
1067 first: 5,
1068 },
1069 );
1070 return res.sourceMembers.edges?.map((edge) => edge.node);
1071}
1072
1073// Join and leave invalidate this key, so it keeps its original shape.
1074export const squadMembersPreviewQueryOptions = ({

Callers 2

useSquadAdFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected