INNER CODE UNIT · TypeScript
saveJsonFormatted
Escape-Technologies/graphman · src/lib.ts:43
export function saveJsonFormatted(json: any, path: string) {
Deno.writeTextFileSync(path, JSON.stringify(json, null, "\t"), {
create: true,
});
}
export async function fetchIntrospection(
url: string,
headers: Array<[string, string]>,
) {
const introspectionQueryString = getIntrospectionQuery();
const introspection = await query(
url,
introspectionQueryString,
headers,
);
if (!introspection.data) {