How to use the cross-fetch.Response function in cross-fetch

To help you get started, we’ve selected a few cross-fetch examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github AEB-labs / graphql-weaver / spec / regression / data / errors.config.ts View on Github external
async fetchResponse(document: DocumentNode, variables?: { [name: string]: any }, context?: any) {
            const result = await graphql(this.schema, print(document), {}, context, variables);
            return new Response(JSON.stringify(result));
        }
}