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

Function createOrganization

site/src/api/queries/organizations.ts:34–44  ·  view source on GitHub ↗
(queryClient: QueryClient)

Source from the content-addressed store, hash-verified

32import { cachedQuery } from "./util";
33
34export const createOrganization = (queryClient: QueryClient) => {
35 return {
36 mutationFn: (params: CreateOrganizationRequest) =>
37 API.createOrganization(params),
38
39 onSuccess: async () => {
40 await queryClient.invalidateQueries({ queryKey: meKey });
41 await queryClient.invalidateQueries({ queryKey: organizationsKey });
42 },
43 };
44};
45
46interface UpdateOrganizationVariables {
47 organizationId: string;

Callers 1

CreateOrganizationPageFunction · 0.90

Calls 1

createOrganizationMethod · 0.80

Tested by

no test coverage detected