Questions tagged [nestjs]
Nest (NestJS) is a framework for building efficient, scalable Node.js server-side applications. It uses progressive JavaScript, is built with and fully supports TypeScript.
nestjs
12,819
questions
-2
votes
0
answers
9
views
Trouble using Post method in nest js
I used dto to recieve data with object with post in nestjs typeorm
@Post(':userId/charge-amount')
@HttpCode(HttpStatus.OK)
async chargeUser(
@Body() chargeAmountDTO : ChargeAmountDTO,
...
0
votes
0
answers
6
views
How to clear all sessions in a NestJS app?
I have a NestJS app, with a special Admin route I want to be able to call to clear out all user sessions (for example: after we deploy a new version of the application).
I have this very basic class ...
0
votes
0
answers
7
views
Why are my NestJS Guards not included in Jest code coverage?
I have written unit tests for my Nest Guards, and then run just fine and pass, but when I check my code coverage they are not included in that! You can see in my console output the *.guard.ts files ...
0
votes
0
answers
20
views
Nest can't resolve dependencies of the FollowService Please make sure RedisService at index [2] is available in the RootTestModule context. how to fix
FAIL follow/follow.resolver.spec.ts ● FollowResolver › should be
defined
Nest can't resolve dependencies of the FollowService (aService, bService, ?). Please make sure that the argument
RedisService ...
0
votes
0
answers
10
views
Nestjs with fastify adapter broken on v10
I updated nestjs to the v10, and tried to implement fastify adapter but it throws 200+ types errors inside the node_modules/fastify/types
Versions:
"@nestjs/common": "^10.3.10",
&...
0
votes
0
answers
13
views
NestJS & Jest: The presence of jest.config.ts causes "strange behavior" during build
I have a Nestjs service inside my monorepo project with the following structure:
/
- package.json
- packages/
- - frontend/
- - backend/
- - backend/package.json
backend is the nestjs service, ...
0
votes
0
answers
7
views
NestJS: Why does custom DB-logger (implementing TypeOrmLogger) only show DB-requests in log, not DB-responses
In my NestJS service, I've implemented a custom DB logger, which is meant to log both the before (requests), as well as the after (DB responses) info. I've done this by implementing the suggested ...
0
votes
1
answer
25
views
error in typescript while importing the p-retry library
I have found a lot of similar posts, but, I've not found one specifically for this scenerio (for p-retry) where, the library does provide it's own type-definitions, and has sample documentations doing ...
0
votes
1
answer
25
views
How to select and enter all role names (separate column) in the incoming data field as an array in typeorm query
I have a typeorm library using nestjs and a mysql database which has a table user, user_roles (many to many) and roles. I also have a user who already has the super_admin role.
const users = await ...
0
votes
0
answers
21
views
TypeORM fails to load postgresql tables associated with the id in Nest.js application
The problem I'm facing is that this query sometimes returns jobs where userId is not present in reviewUsers, inviteUsers, or favouriteUsers, despite expecting to retrieve all jobs where userId matches ...
-2
votes
0
answers
12
views
Integrate @web3auth/single-factor-auth in a FastAPI Application
I'm working on migrating an application from NestJS to FastAPI and need help integrating Web3Auth's @web3auth/single-factor-auth SDK into my FastAPI project. In my NestJS application, I used the ...
0
votes
0
answers
32
views
How scalable real-time collaborative whiteboard persists with data?
Planning to implement a scalable real-time collaborative whiteboard but don’t know what architecture to use in order to keep the users persistent without slowing down the application. The application ...
0
votes
0
answers
9
views
res.setHeader is not a function occurs when logging in to nestjs+graphql+Google
I am testing Google social login with nestjs and graphql.
However, an error res.setHeader is not a function appears.
This is the auth.module.ts file.
import { Module } from '@nestjs/common';
import {...
0
votes
1
answer
42
views
why doesn't npm install work properly in NestJS/ubuntu
I was working on a NestJS project, I recently moved from windows to Ubuntu and once I cloned the project from github on my linux, the npm install command doesn't work with the following error:
...
1
vote
0
answers
15
views
How to connect main app with microservice rabbitMQ to use websockets from microservice
I have main app with connected webSockets, but also, I have RabbitMQ microservice with methods where I want to send message to client by websockets. Could you assist with connection?
Here is my app....