Unexpected EOF on graphql POST request
<p>I am using the <code>fetch</code> api to make a <code>POST</code> request sending a <code>GraphQL</code></p>

<pre><code>fetch( dbUrl, {
        method : 'post',
        body   : JSON.stringify( {
            graphql : "mutation M {saveUser(name:'Avraam')}"
        } )
    } )
</code></pre>

<p>On the request body I can see clearly:</p>

<p><a href="https://i.stack.imgur.com/J4zcw.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/J4zcw.png" alt="enter image description here"></a></p>

<p>On the server I am using <code>restify</code> and I have:</p>

<p><code>server.use( restify.bodyParser() );</code></p>

<p>and</p>

<pre><code>import { GraphQLAnimationSchema } from '../schemas/GraphQLAnimationSchema';

const requestBuilder = query =&gt; graphql( GraphQLAnimationSchema, query )

...
...

export default {
    '/data' : {
        post : ( req, res ) =&gt; requestHandler( requestBuilder( req.body.graphql ), res )
};
</code></pre>

<p>The GraphQL response with
<code>{"errors":[{"message":"Syntax Error GraphQL request (1:1) Unexpected EOF\n\n1: \n   ^\n"}]}</code></p>

<p>Should I use a specific kind of <code>Headers</code>, (I have tried to use various Headers) but it doesnt seem to solve the problem.</p>