title: how to pass query param in graphql
body: <p>Is that possible to pass data inside the body query in graphql??  Like this</p>
  
  <pre><code>    var name = formData.get('name');
      var email = formData.get('email');
      var message = formData.get('message');
  
      const resp = await fetch('/graphql', {
          method: 'post',
          headers: {
              Accept: 'application/json',
              'Content-Type': 'application/json',
          },
          body: JSON.stringify({
              query: '{createPost (name: '+ name +' , email: '+ email +' , message: '+ message +') {id, statut}}',
  
          }),
          credentials: 'include',
      });
      const { data } = await resp.json();
      if (!data || !data.createPost) throw new Error('Error');
  
      console.log(data.createPost)
  </code></pre>
  
  <p>In the query line i want to pass all the var that i get from a submit form.
  When i try this , i got this error</p>
  
  <pre><code>{
  
  
  "errors": [
      {
        "message": "Syntax Error GraphQL request (1:29) Expected :, found Name \"email\"\n\n1: {createPost(name: John Doe , email: JD@test.com , message: blablabla) {id, statut}}\n                               ^\n",
        "locations": [
          {
            "line": 1,
            "column": 29
          }
        ]
      }
    ]
  }
  </code></pre>
  
  <p>Thank you for the help</p>