MCPcopy Index your code
hub / github.com/coder/coder / createGroup

Function createGroup

site/src/api/queries/groups.ts:165–178  ·  view source on GitHub ↗
(queryClient: QueryClient, organization: string)

Source from the content-addressed store, hash-verified

163};
164
165export const createGroup = (queryClient: QueryClient, organization: string) => {
166 return {
167 mutationFn: (request: CreateGroupRequest) =>
168 API.createGroup(organization, request),
169 onSuccess: async () => {
170 await queryClient.invalidateQueries({
171 queryKey: groupsQueryKey,
172 });
173 await queryClient.invalidateQueries({
174 queryKey: getGroupsByOrganizationQueryKey(organization),
175 });
176 },
177 };
178};
179
180export const patchGroup = (queryClient: QueryClient, organization: string) => {
181 return {

Callers 1

CreateGroupPageFunction · 0.90

Calls 1

Tested by

no test coverage detected