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

Function createSquad

packages/shared/src/graphql/squads.ts:1182–1193  ·  view source on GitHub ↗
(form: SquadForm)

Source from the content-addressed store, hash-verified

1180});
1181
1182export async function createSquad(form: SquadForm): Promise<Squad> {
1183 const { description, ...inputData } = formToInput(form);
1184 // The API rejects an empty description, so a squad created without one
1185 // (the Startups company step asks only for a name) leaves it out
1186 const data = await gqlClient.request(CREATE_SQUAD_MUTATION, {
1187 ...inputData,
1188 ...(description ? { description } : {}),
1189 ...(form.company && { company: true }),
1190 });
1191
1192 return data.createSquad;
1193}
1194
1195interface EditSquadMutation {
1196 id: string;

Callers

nothing calls this directly

Calls 1

formToInputFunction · 0.85

Tested by

no test coverage detected