MCPcopy Create free account
hub / github.com/StarpTech/FastGraph / fetchSchema

Function fetchSchema

src/graphql-utils.ts:68–78  ·  view source on GitHub ↗
(
  introspectionUrl: string,
  headers: Headers = new Headers(),
)

Source from the content-addressed store, hash-verified

66}
67
68export async function fetchSchema(
69 introspectionUrl: string,
70 headers: Headers = new Headers(),
71) {
72 const schema = await getClientSchema(introspectionUrl, headers)
73 if (schema) {
74 return schema
75 } else {
76 throw new Error('Schema could not updated from introspection endpoint')
77 }
78}
79
80export const hasAuthDirective = (
81 node:

Callers

nothing calls this directly

Calls 1

getClientSchemaFunction · 0.85

Tested by

no test coverage detected