Graphql and JSON.stringify(result)


First, thank you for this amazing framework !

I’ve a noob question : regarding the example here

module.exports.query = (event, context, callback) => graphql(schema, event.queryStringParameters.query)
   result => callback(null, {
      statusCode: 200, body: JSON.stringify(result)
   err => callback(err)

If the result is an object, what options do we have to get a clean/full Json from Lambda in the body and not something like :


I’d like to avoid a JSON.parse on the client side

Thank you for ur help