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 {
Middleware is used to protect the resolver. The middleware checks the role of user and despite the right role of the requested user I cannot access listUser que
Import the module if you want the service to be used by another service. Why do you regenerate the repository instead of exporting it from the module?
I'm trying to replace my logger provider in a unit test file with a stubbed provider so that I don't get logs during unit tests from the tested module. I'm gett
using nestjs framework and with a repository class that uses mongoose to do the CRUD operations we have a simple users.repository.ts file like this: @Injectable
In my NestJS application with postgres db I have these 3 entities: User, Writer, Book and a class named UserBaseEntity. export class UserBaseEntity { @Prim
I have below class export class DocumentsSteps { @ApiProperty({type: ???}) [type: string]: DocumentStep; } How should I define ApiProperty type?
Cookies are not sent to the server via getServerSideProps, here is the code in the front-end: export async function getServerSideProps() { const res = await a
I am writing an application to handle requests and return predefined responses to allow testing of external REST endpoints by software that cannot have internal
Scenario: I'm build a NodeJs (NestJs Framework) application, Where I can get feedback from my clients (Amazon Product Purchaser) and Post its review on my Amazo
I have my controller with @Post('email/register') @HttpCode(HttpStatus.CREATED) @ApiOkResponse(AuthConfigSwagger.API_OP_CREATE) @ApiCreatedResponse(Auth
I am trying to log the response data by using logger interceptor, but when I send a new request I get output before undefined after instead of what i expect to
I need too use useQuery a few times to get different data from db. So I call: const {data: var1} = useQuery(MY_QUERY, {variable: {content1}); const {data: var2
I dont know why, but since I was cloning my working repository I am using on AWS to a local machine and try to run it, I am getting the following error: "SCRAM-
I want to disable X-Powered-By in nestjs like the following, but it does not work. main.ts: async function bootstrap() { const logger = new Logger('bootstra