Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
'use strict'
const fastStringify = require('fast-safe-stringify').stable;
const runHttpQuery = require('apollo-server-core').runHttpQuery;
function graphql(options) {
return {
method: ['GET', 'POST'],
url: options.path,
schema: {
querystring: {
query: {
type: 'string'
}
},
body: {
type: 'object',
properties: {
query: {