title: Graphql Spring Boot - Invalid Syntax : offending token error
body: <p>I am doing the following query from client side. The same query works from postman.</p>
  <pre><code> var headers = {};
  headers['Authorization'] = 'Token eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJkaXYiLCJwYXNzd29yZCI6ImRpdjEwIiwicm9sZSI6IkFETUlOIn0.ez-hHRvfqA7Zb3vIvJTzh7ce_SIWQz5Gv-rBZ9qU3i6LznNXssvTB_Opa_wX7_rJcCWjuyWvMSDbUpZPxZLKXA';
  headers['Content-Type'] = 'application/json';
  var query = `query{
                       getAllFeatures{
                           id
                           featureName
                           featureCount
  
                       }
                  }`;
  
  
   $.ajax({
                       type: 'POST',
                       url: &quot;http://localhost:8888/divya&quot;,
                       dataType: '*',
                       headers: headers,
                       withCredentials: true,
                       data: JSON.stringify(query),
                       success: function (data, status) {
                           console.log(data);
  
                       },
                       error: function (error) {
                         console.log(error);
                       }
                   });
  </code></pre>
  <p>I am getting the following error-</p>
  <blockquote>
  <p>Invalid Syntax : offending token '&quot;query{\n                         getAllFeatures{\n</p>
  </blockquote>
  <p>My server side code is :</p>
  <pre><code> @PostMapping(&quot;/divya&quot;)
  public ResponseEntity&lt;Object&gt; resolveQuery(@RequestBody String query) {
      ExecutionResult execute = graphQLProvider.graphQL().execute(query);
      return new ResponseEntity&lt;&gt;(execute, HttpStatus.OK);
  }
  </code></pre>
  <p>What am I missing?</p>