Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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));
}
}