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

Function workspaceById

site/src/api/queries/workspaces.ts:47–52  ·  view source on GitHub ↗
(workspaceId: string)

Source from the content-addressed store, hash-verified

45 ["workspace", workspaceId] as const;
46
47export const workspaceById = (workspaceId: string) => {
48 return {
49 queryKey: workspaceByIdKey(workspaceId),
50 queryFn: () => API.getWorkspace(workspaceId),
51 };
52};
53
54export const workspaceByOwnerAndName = (owner: string, name: string) => {
55 return {

Callers 4

AgentChatPageFunction · 0.90
AgentsPageFunction · 0.90
WorkspaceBuildLogSectionFunction · 0.90

Calls 2

workspaceByIdKeyFunction · 0.85
getWorkspaceMethod · 0.80

Tested by

no test coverage detected