function parseGraphQL (body, bodyTrim) {
  const query = body.query;
  let bodySnippet = '',
    graphqlVariables;
  try {
    graphqlVariables = JSON.parse(body.variables);
  }
  catch (e) {
    graphqlVariables = {};
  }
  bodySnippet = `'${sanitizeString(JSON.stringify({
    query: query,
    variables: graphqlVariables
  }), bodyTrim)}';`;
  return bodySnippet;
}
/**
 * Parses Body of graphql
 *
 * @param {Object} body body object from request.
 * @param {boolean} bodyTrim trim body option
 * @return {String} the data for a binary file
 */
Parses Body of graphql
@param {Object} body body object from request.
@param {boolean} bodyTrim trim body option
@return {String} the data for a binary file
Parses Body of graphql @param { Object } body body object from request . @param { boolean } bodyTrim trim body option @return { String } the data for a binary file
function parseGraphQL (body, bodyTrim) {
  const query = body.query;
  let bodySnippet = '',
    graphqlVariables;
  try {
    graphqlVariables = JSON.parse(body.variables);
  }
  catch (e) {
    graphqlVariables = {};
  }
  bodySnippet = `'${sanitizeString(JSON.stringify({
    query: query,
    variables: graphqlVariables
  }), bodyTrim)}';`;
  return bodySnippet;
}
function parseGraphQL ( body , bodyTrim ) { const query = body . query ; let bodySnippet = '' , graphqlVariables ; try { graphqlVariables = JSON . parse ( body . variables ) ; } catch ( e ) { graphqlVariables = { } ; } bodySnippet = ` ${ sanitizeString ( JSON . stringify ( { query : query , variables : graphqlVariables } ) , bodyTrim ) } ` ; return bodySnippet ; }
Parses Body of graphql
 @param {Object} body body object from request.
Parses Body of graphql @param { Object } body body object from request .