( introspectionUrl: string, headers: Headers = new Headers(), )
| 66 | } |
| 67 | |
| 68 | export 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 | |
| 80 | export const hasAuthDirective = ( |
| 81 | node: |
nothing calls this directly
no test coverage detected