Category "nestjs"

NestJS GRPC metadata no longer received by server after @grpc/grpc-js update

The package grpc is being depreciated so i have moved to @grpc/grpc-js as advised by the maintainers. Since moving to the new package NestJs no longer receives

How to resolve a circular dependency in nest js?

I have my app.module that imports UserModule and AuthModule. @Module({ imports: [UserModule, AuthModule], controllers: [AppController], providers: [AppSer

How to save a nested object using typeorm and Nestjs?

I have the following Data entity: @PrimaryGeneratedColumn() id: number @Column() dataA: string @Column() dataB: string @Column() dataC: number @Colum

Nestjs and Google Recaptcha

I am trying to implement a server-side validation for reCaptcha using Nestjs and I want to if I should implement this as a module or as a service for modules(su

Intercepting in Multer Mutates Request? (NestJS)

Does multer mutates any request that has given to it? I'm currently trying to intercept the request to add this in logs. But whenever I try to execute this code

NestJs: Failed to execute command: npm install --silent

After I installed Nest globally, I tried creating a new project but I got this error Failed to execute command: npm install --silent. nest new new_project

EROFS: read-only file system, mkdir '/logs/'

When I try running local server from npm run start, it shows this error. I'm using Mac and NestJS.

How to implement Node-Media-Server in Nestjs?

I try to implement a RMTP server in Nestjs thanks to Node-Media-Server, have any of you ever managed to do something like this? I naively tried to run this litt

How can I set a session key from inside a GraphQL resolver in NestJS?

I'm discovering Nest.js and I want to setup a cookie based authentication system with GraphQL. I already installed express-session middleware, here is the conf

nest Command not found

I followed the documentation to create my first NestJS project. Installing the Nest CLI with the command npm i -g @nestjs/cli was successful. The output was:

Nest.js axios HttpModule freezes app initialization

I have a module that goes like this: import { Module } from '@nestjs/common' import { OtpService } from '@modules/auth/otp/otp.service' import { OtpResolver } f

Vendor Machine API's Postman Collection Issue

I am trying to create a postman collection for a Vendor machine API but when I try to send a login request localhost:3000/auth/login I get connect ECONNREFUSED

How to have class-transform converting properly the _id of a mongoDb class?

I've the following mongoDb class: @Schema() export class Poker { @Transform(({ value }) => value.toString()) _id: ObjectId; @Prop() title: string;

Mongoose Subdocuments in Nest.js

I'm moving my app from express.js to Nest.js, and I can't find a way to reference one mongoose Schema in another, without using old way of declaring Schema with

Access raw body of Stripe webhook in Nest.js

I need to access the raw body of the webhook request from Stripe in my Nest.js application. Following this example, I added the below to the module which has a

How to use nestjs Logging service

I tried to use the internal Logger of nestjs (described on https://docs.nestjs.com/techniques/logger -> but with no description of how to use it) But I had

Cannot upload more than 5 attachments with GraphQL mutation

I am trying to attach more than 5 files with GraphQL mutation in NestJS API server. It works when the number of attachments is either 5 or less. I cannot find a

"Cannot use import statement outside a module" in typeorm migration when run nestjs app

I have created the nestjs app. In the root app folder I have these subfolders: dist migration src test The migration folder contains typeorm migrations. When r

CORS is somehow stopping my Angular and Nestjs apps from communicating

I'm building an app with Angular and NestJS using NGXS for state management. I got everything set up and served my application and got this error in the consol

How to get user JWT token in JWTStrategy (NestJS)?

My problem is that I want to check if the login token is invalidated in the database (after changing password). However, the validate function in JWTStrategy on