Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export default function getGraphQLParams(event: Object): Promise {
return parseBody(event).then(bodyData => {
const urlData = (event.url && url.parse(event.url, true).query) || {};
return parseGraphQLParams(urlData, bodyData);
});
}