Category "nestjs"

How can I have multiple DTO's for NestJS Request Body/Swagger

so I have a route that can accept two different DTO's. I'm having difficulty getting these two DTO's to link/show up on swagger. I'm using the swagger plugin wi

Proper way to export dynamic module

I have a NestJS application with the CoreModule which exports an collection of the core services to all other modules. In core module i have dynamic module regi

OnQueueError not firing on task queue: NestJS + Bull

I've noticed that bull does not print exceptions to the console by default. To get around this I want to catch errors with the @OnQuerueError decorator and prin

Class validator: Use class member as decorator argument

I have a signup DTO where one member is dependent of another. The IsPostalCode on zip needs to know the countryCode/locale, which is one of the other class memb

How to transform GQL schema on its generating? [NestJS]

I want to apply prefixes to all types, mutations, etc. in GQL schema generated. Here is my config factory: useFactory: (configService: ConfigService) => ({

steam passport implementation, convert from express to nestjs

I've started to convert express project to nestjs. How should it work in Nestjs. Here is working code from Express. (Code below just redirects to steam sign-in

How to map with the help of Automapper (TypeScript) the entries of an array filled with different DTOs?

I'm using the TypeScript library "Automapper" in my NestJS backend to convert an answer of MongoDb/Mongoose to an DTO. That's how the answer looks like: { "

Can you import a NestJS module on condition

I'am creating a microservice in NestJS. Now I want to use RabbitMQ to send messages to another service. My question is: is it possible to import the RabbitmqMod

Can you import a NestJS module on condition

I'am creating a microservice in NestJS. Now I want to use RabbitMQ to send messages to another service. My question is: is it possible to import the RabbitmqMod

RepositoryNotFoundError: No repository for "User" was found. Looks like this entity is not registered in current "default" connection? Typeorm

I am having a fun issue trying to get TypeOrm to work in my nestjs project. I have the below code to configure my project, yes everything loads, and yes I am ab

Deleting Events using Google API - Notifications 'From' coming from Admin account

I am currently working on a nest JS project that leverages the google node package to delete an event from a users calendar (gcal). Gcal successfully deletes th

Nestjs application can not run after bundled with webpack

I have a nestjs app and i use webpack to bundled this entire project to a main.js file. My webpack configure file just flowed by this repo ,but when i run npm r

How to fix 400 error bad request in socket io?

I have a frontend application(VUE JS) I have a backend (Nest JS) Vue JS app get data from backend via websockets using vue-socket.io-extended library When Vue J

using validation pipe in nestjs gives me an classTransformer.plainToclass is not a function error

i am using nestjs/graphql, and i made a dto for a graphql mutation where i used class-validator options like @IsString() and @IsBoolean(). for this i installed

Problem about dockerizing a NestJS app with Prisma and PostgreSQL

I am trying to build a NestJS app with Prisma and PostgreSQL. I want to use docker; however, I got an error when I sent the request to the backend. Here is my d

One to One chat using socket.io in Nestjs

Please let me know if the code I have written for one-to-one chat is correct? and how do I know that messages are emitting from the backend here I am assigning

NestJS Middleware Not Executed

The NestJS class or functional middleware doesn't run when connected from a Module. It is also not working for a single path, controller or for every path. Conn

NestJS - Combine multiple Guards and activate if one returns true

I've got one question. Is it possible to use multiple auth guards on a route (in my case basic and ldap auth). The route should be authenticated when one guard

how to validation use Joi in NestJs

address.controller.ts Whatever I write to the input console returns log error in validation.pipe.ts. import { JoiValidationPipe } from 'src/validation.pipe'; im

How to workraound this TypeORM error, "EntityRepository is deprecated , use Repository.extend function instead"?

However, I can't find any Repository.extend method in Repository class and there's nothing about it in the documentation. How to solve this? typeorm version: "^