Top "Nestjs" questions

Nest (NestJS) is a framework for building efficient, scalable Node.

NestJS enable cors in production

I've enabled CORS in my NestJS app following the official tutorial, so my main.ts looks like the following: import { …

javascript node.js typescript cors nestjs
How to use nestjs Logging service

I tried to use the internal Logger of nestjs (described on https://docs.nestjs.com/techniques/logger -> but …

javascript node.js typescript logging nestjs
How to use query parameters in Nest.js?

I am a freshman in Nest.js. And my code as below @Get('findByFilter/:params') async findByFilter(@Query() query): Promise&…

javascript node.js typescript express nestjs
Environment variable with dotenv and TypeScript

I create this .env file: TYPE=xxx HOST=xxx, PORT=xxx, USERNAME=xxx, PASSWORD=xxx, DATABASE=xxx, in my file …

javascript node.js typescript nestjs dotenv
Inject nestjs service from another module

I've got a PlayersModule and an ItemsModule. I want to use the ItemsService in the PlayersService. When I add it …

javascript node.js typescript dependency-injection nestjs
Connection "default" was not found with TypeORM

I use TypeORM with NestJS and I am not able to save properly an entity. The connection creation works, postgres …

node.js postgresql typeorm nestjs
nestjs vs plain express performance

I've just tested performance on a simple nest's controller, that returns text on a get request (no database). And the …

nestjs
NestJS returning the result of an HTTP request

In my NestJS application I want to return the result of an http call. Following the example of the NestJS …

node.js typescript rxjs axios nestjs
TypeORM: Joining when we have one to many and many to one relationship

@Entity() export class User { @PrimaryColumn() id: string; @Column({unique: true}) username: string; @Column({unique: true}) email: string; @OneToMany(type => …

nestjs typeorm
Nestjs Response Serialization with array of objects

I want to serialize a controller response by the nestjs serialization technique. I didn't find any approach and my solution …

node.js typescript serialization nestjs class-transformer