INNER CODE UNIT · TypeScript
fetchIntrospection
Escape-Technologies/graphman · src/lib.ts:49
export async function fetchIntrospection(
url: string,
headers: Array<[string, string]>,
) {
const introspectionQueryString = getIntrospectionQuery();
const introspection = await query(
url,
introspectionQueryString,
headers,
);
if (!introspection.data) {
throw new Error(
"\n\nError fetching introspection query. \n Please verify your URL, authorization, and network connection.\n",
);
}
return introspection.data as IntrospectionQuery;
}