I am trying to implement NestJS Guards for Authentication and Authorization to my gRPC Services, which are implemented in NestJS. @GrpcMethod(USER_SERVICE_NAME,
So, by reading the NestJS documentation, I get the main idea behind how the filters work with exceptions. But from all the code I have seen, it seems like all s
After adding OneToMany and manyToOne relations in the entities and doing GET request it shows in postman 500 error. // Car entity @Entity({ name: 'car' }) expor
I have a feedbackQuestion schema which takes (title: string, subtitle: string, types: enum, values: enum) import { Prop, Schema, SchemaFactory } from '@nestjs/m
I need to read my CSV file in the controller to add CSV file data into my DB. But I don't know the way to that. I search for an answer so many times but I can't
As found in this SO-answer, the following thing could be a way how to encrypt a password into a hash: @BeforeInsert() async hashPassword() { this.password
I'm proofing out an integration test with NestJS/KafkaJS. I have everything implemented except the function on the event listener (consumer) for the topic I'm e
I am trying to develop a mail sending module in my NestJs project. when I send the mail through my local machine it works fine. But when it goes to the server (
My goal is to emit to only one client by using the default room that is being created by socketIo. The room id and client id match. I checked that by logging it
I have a problem with overriding provider/setup module testing in nest.js application for testing. Module file: smsModule.ts: import { TwilioService } from './t
Here What I did is I have a user entity and a role entity. Every user can have one role. I have set up many-one relationship in role entity. I have create an en
I'm adding tests on a project and improving coverage. I would like to know how can I test a method defined inside a module definition in NestJs. import { Middle
I'm trying to create a simple test with nestjs, and I'm get this error Test functions cannot both take a 'done' callback and return something. Either use a 'do
I'm trying to write a test that checks if request body does not have proper data, it should return an error, and the status code should be 400. Which I think is
I use angular in the front end where I am learning to use rxjs-websockets. In backend I use nestjs, where i want to learn to use websockets. But every tutorial
I try to run my nestjstutorial app, the below error is showing. My backend is connected to a PostgreSQL db. TypeError: Cannot set property metadata of # which
I'm currently creating a Rest API with NestJS (it's really cool by the way). In this API, I'm using JWT (Json Web Token) to allow users to log in and view diffe
I am trying to test that after sending a request to one of my controllers, the queue pushes a job. Implementation itself works as expected. This is my app.modul
When pulling the queue name through .env file I get the following error on the console: Cannot read properties of undefined (reading 'meta'). How can I pass que
I want write an unit test for my getAllGroups() method in mail.service.ts: public async getAllGroup(): Promise<{ id: number, name: string }[]> { try {