MCPcopy Index your code
hub / github.com/simstudioai/sim / fetchTable

Function fetchTable

apps/sim/hooks/queries/tables.ts:135–146  ·  view source on GitHub ↗
(
  workspaceId: string,
  tableId: string,
  signal?: AbortSignal
)

Source from the content-addressed store, hash-verified

133>
134
135async function fetchTable(
136 workspaceId: string,
137 tableId: string,
138 signal?: AbortSignal
139): Promise<TableDefinition> {
140 const response = await requestJson(getTableContract, {
141 params: { tableId },
142 query: { workspaceId },
143 signal,
144 })
145 return response.data.table
146}
147
148async function fetchTableRows({
149 workspaceId,

Callers 2

useTableFunction · 0.85

Calls 1

requestJsonFunction · 0.90

Tested by

no test coverage detected