title: How to upload file using nestjs-graphql-fastify server and how to test such feature?
body: <p>I struggle to upload .csv file to nestjs-graphql-fastify server. Tried following code:</p>
  <pre><code>  @Mutation(() =&gt; Boolean)
    async createUsers(
      @Args({ name: 'file', type: () =&gt; GraphQLUpload })
      { createReadStream, filename }: FileUpload,
    ): Promise&lt;boolean&gt; {
      try {
        // backend logic . . .
      } catch {
        return false;
      }
      return true;
    }
  </code></pre>
  <p>but all I get when testing with postman is this response:</p>
  <pre><code>{
      &quot;statusCode&quot;: 415,
      &quot;code&quot;: &quot;FST_ERR_CTP_INVALID_MEDIA_TYPE&quot;,
      &quot;error&quot;: &quot;Unsupported Media Type&quot;,
      &quot;message&quot;: &quot;Unsupported Media Type: multipart/form-data; boundary=--------------------------511769018912715357993837&quot;
  }
  </code></pre>
  <p>Developing with code-first approach.</p>
  <p>Update: Tried to use fastify-multipart but issue still remains. What has changed is response in postman:</p>
  <pre><code>POST body missing, invalid Content-Type, or JSON object has no keys.
  </code></pre>