Category "nestjs"

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: "^

NestJS setup TypeOrm connection with .env and @nestjs/config

I'm trying to find the most legal way to set up NestJS database using .env file. That is I want to use @nestjs/config package for importing .env variables and u

missing 'error' handler on this Redis client

It's really an odd issue I cannot detect, here's my adapter. import { IoAdapter } from '@nestjs/platform-socket.io'; import { ServerOptions } from 'socket.io';

Problems with RabbitMQ and NestJS. I can't publish a message with nestjs-rabbitmq and NestJS

I have NestJS 8.0.0 and I'm using @golevelup/nestjs-rabbitmq": "2.2.0. Basically I have handling messages working fine but I can't send any, I just get a "Canno

Object gotten from the NestFactory has all the internal dependencies as undefined - NestJS

I get an object from NestFactory and then I call a function. There is another class injected inside service class. All the dependencies inside the service are n

Nestjs GraphQL subscriptions onConnect & onDisconnect callbacks

Is there an approach to hook into the onConnect and onDisconnect lifecycle-events in Nestjs?

NestJS microservices error with "No matching message handler"

I'm building an application with microservices communicating through RabbitMQ (request-response pattern). Everything works fine but still I have a problem with