How to use the express-graphql/dist/parseBody.parseBody function in express-graphql

To help you get started, we’ve selected a few express-graphql 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 webiny / webiny-js / packages / webiny-api / src / graphql / utils / getGraphQLParams.js View on Github external
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);
    });
}

express-graphql

Production ready GraphQL HTTP middleware.

MIT
Latest version published 4 years ago

Package Health Score

58 / 100
Full package analysis