title: Increase body limit with nestjs & fastify
body: <p>My main.ts looks like this :</p>
  <pre class="lang-js prettyprint-override"><code>import { NestFactory } from '@nestjs/core';
  import { FastifyAdapter, NestFastifyApplication } from '@nestjs/platform-fastify';
  import { Logger } from 'nestjs-pino';
  import { processRequest } from 'graphql-upload';
  import { AppModule } from './app.module';
  
  async function bootstrap() {
    const adapter = new FastifyAdapter();
    const fastifyInstance = adapter.getInstance();
    fastifyInstance.addContentTypeParser('multipart', (request, done) =&gt; {
      request.isMultipart = true;
      done();
    });
  
    fastifyInstance.addHook('preValidation', async (request: any, reply) =&gt; {
      if (!request.raw.isMultipart) {
        return;
      }
      request.body = await processRequest(request.raw, reply.raw);
    });
    const app = await NestFactory.create&lt;NestFastifyApplication&gt;(
      AppModule,
      adapter,
      { bufferLogs: true },
    );
    app.useLogger(app.get(Logger));
    app.enableCors();
    await app.listen(parseInt(process.env.SERVER_PORT || '3000', 10), '0.0.0.0');
  }
  
  bootstrap();
  </code></pre>
  <p>According to the <a href="https://www.fastify.io/docs/latest/Reference/Server/#bodylimit" rel="nofollow noreferrer">fastify doc</a> the body limit is 1MiB by default, however I want it to be larger. So I tried like this :
  <code>const adapter = new FastifyAdapter({ bodyLimit: 124857600 });</code> but I still get the same problem with my payload being too large.</p>