graphql-http / audits/server / ServerAuditOptions
audits/server.ServerAuditOptions
Options for server audits required to check GraphQL over HTTP spec conformance.
• Optional
fetchFn: unknown
The Fetch function to use.
For NodeJS environments consider using @whatwg-node/fetch
.
Default
global.fetch
• url: string
| Promise
<string
> | () => string
| Promise
<string
>
The URL of the GraphQL server for the audit.
A function can be also supplied, in this case - every audit will invoke the function to get the URL.