function addContentTypeHeader (request) {
  if (request.body && request.body.mode === 'graphql' && !request.headers.has('Content-Type')) {
    request.addHeader({
      key: 'Content-Type',
      value: 'application/json'
    });
  }
}
/**
  * Add the content type header if needed
  *
  * @module convert
  *
  * @param  {Object} request - postman SDK-request object
  */
Add the content type header if needed
@module convert

@param  {Object} request - postman SDK-request object
Add the content type header if needed @module convert @param { Object } request - postman SDK - request object
function addContentTypeHeader (request) {
  if (request.body && request.body.mode === 'graphql' && !request.headers.has('Content-Type')) {
    request.addHeader({
      key: 'Content-Type',
      value: 'application/json'
    });
  }
}
function addContentTypeHeader ( request ) { if ( request . body && request . body . mode === 'graphql' && ! request . headers . has ( 'Content-Type' ) ) { request . addHeader ( { key : 'Content-Type' , value : 'application/json' } ) ; } }
Add the content type header if needed
 @module convert
Add the content type header if needed @module convert