function parseGraphQLBody (body, trim) {
  var bodySnippet = '',
    query = body ? body.query : '',
    graphqlVariables;
  try {
    graphqlVariables = JSON.parse(body.variables);
  }
  catch (e) {
    graphqlVariables = {};
  }

  bodySnippet += `request.body = '''${sanitize(JSON.stringify({
    query: query,
    variables: graphqlVariables
  }), trim)}''';\n`;

  return bodySnippet;
}
/**
 * Parses GraphQL body
 *
 * @param {Object} body GraphQL body
 * @param {Boolean} trim indicates whether to trim string or not
 */
Parses GraphQL body
@param {Object} body GraphQL body
@param {Boolean} trim indicates whether to trim string or not
Parses GraphQL body @param { Object } body GraphQL body @param { Boolean } trim indicates whether to trim string or not
function parseGraphQLBody (body, trim) {
  var bodySnippet = '',
    query = body ? body.query : '',
    graphqlVariables;
  try {
    graphqlVariables = JSON.parse(body.variables);
  }
  catch (e) {
    graphqlVariables = {};
  }
  bodySnippet += `request.body = '''${sanitize(JSON.stringify({
    query: query,
    variables: graphqlVariables
  }), trim)}''';\n`;
  return bodySnippet;
}
function parseGraphQLBody ( body , trim ) { var bodySnippet = '' , query = body ? body . query : '' , graphqlVariables ; try { graphqlVariables = JSON . parse ( body . variables ) ; } catch ( e ) { graphqlVariables = { } ; } bodySnippet += ` ${ sanitize ( JSON . stringify ( { query : query , variables : graphqlVariables } ) , trim ) } \n ` ; return bodySnippet ; }
Parses GraphQL body
 @param {Object} body GraphQL body
 @param {Boolean} trim indicates whether to trim string or not
Parses GraphQL body @param { Object } body GraphQL body @param { Boolean } trim indicates whether to trim string or not