MCPcopy
hub / github.com/hasura/graphql-engine / get

Function get

frontend/libs/console/legacy-ce/src/lib/hooks/apiUtils.ts:71–81  ·  view source on GitHub ↗
(
    args: Omit<IApiArgs, 'body' | 'method'>,
    dataTransform?: (data: T) => V,
    errorTransform?: (error: unknown) => unknown
  )

Source from the content-addressed store, hash-verified

69
70export namespace Api {
71 export function get<T = unknown, V = T>(
72 args: Omit<IApiArgs, 'body' | 'method'>,
73 dataTransform?: (data: T) => V,
74 errorTransform?: (error: unknown) => unknown
75 ) {
76 return fetchApi<T, V>(
77 { ...args, method: 'GET' },
78 dataTransform,
79 errorTransform
80 );
81 }
82 export function post<T = unknown, V = T>(
83 args: Omit<IApiArgs, 'method'>,
84 dataTransform?: (data: T) => V,

Callers 15

SourceSelectFunction · 0.50
MapColumnsFunction · 0.50
CreateFunction · 0.50
ToggleFunction · 0.50
SourceSelectFunction · 0.50
getReferenceObjectFunction · 0.50
BooleanInputFieldFunction · 0.50
ObjectArrayInputFieldFunction · 0.50
NumberInputFieldFunction · 0.50
ObjectInputFieldFunction · 0.50
TextArrayInputFieldFunction · 0.50
getKeyPathFunction · 0.50

Calls 1

fetchApiFunction · 0.70

Tested by

no test coverage detected