#https://docs.nestjs.com/faq/raw-body : not have rawBody property

2 messages · Page 1 of 1 (latest)

daring shoal
#

import { NestFactory } from '@nestjs/core';
import type { NestExpressApplication } from '@nestjs/platform-express';
import { AppModule } from './app.module';

// in the "bootstrap" function
const app = await NestFactory.create<NestExpressApplication>(AppModule, {
rawBody: true,
});
await app.listen(3000);

in this code, NestFactory.create not have rawBody Property
my nestjs version is "@nestjs/core": "^8.0.0"

teal coral
#

I believe that was added in v9