title: Send graphql to the Post body in Restsharp automation
body: <p>throwing the below error when I pass GraphQL to the AddParameter#</p>
  <blockquote>
  <p>{&quot;errors&quot;:[{&quot;message&quot;:&quot;Expected \u0060{\u0060 or \u0060[\u0060 as first syntax token.&quot;,&quot;locations&quot;:[{&quot;line&quot;:1,&quot;column&quot;:1}],&quot;extensions&quot;:{&quot;code&quot;:&quot;EXEC_SYNTAX_ERROR&quot;}}]}</p>
  </blockquote>
  <pre><code>RestClient restClient = new RestClient(&quot;https://xxxxxx&quot;); 
  
  var request = new RestRequest(Method.POST);   
  
  request.AddHeader(&quot;Authorization&quot;, &quot;Bearer &quot; + AccessToken);
  
  request.AddHeader(&quot;Content-Type&quot;, &quot;application/json&quot;);           
  
  request.AddParameter(&quot;application/graphql&quot;,&quot;{\&quot;query\&quot;:\&quot;{\\n agreements(where : submissionId:\\\&quot;180823\\\&quot;) }&quot; + ParameterType.RequestBody);
  
  var resp = restClient.Execute(request);
  </code></pre>