nestjs Questions

8

Solved

I have two entities: User and Habit. A user can create multiple Habits, thus I use a OneToMany relation on the User (and ManyToOne on the Habit, respectively). User Entity import {Entity, Primar...
Troopship asked 23/2, 2020 at 14:44

6

Solved

I have a controller that uses NestJS built-in Logger via dependency injection in constructor of the controller: constructor(private readonly logger: Logger) I want to be able to mock it in my Je...
Chrystel asked 15/7, 2021 at 13:40

2

Solved

I'm using nestjs. I have a front application so I've decided to create a "common" folder for both front and back: project │ └───common │ │ │ └───dtos │ │ dto-a.ts │ │ dto-b.ts │ ...
Hottentot asked 3/11, 2023 at 23:5

6

Solved

I can't seem to access the GraphQL Playground using NestJS. I'm exploring the documentation and have followed this https://docs.nestjs.com/graphql/quick-start up to the Resolvers section to generat...
Slider asked 24/12, 2020 at 17:4

5

Solved

some.entity.ts amount:number But when I store a very large data in my postgres it throws error '''integer out of range''' My question is how can I store Big Int as type in psql using typeorm
Barron asked 27/1, 2020 at 8:47

4

Solved

I am having a problem with importing ESM modules in my project based on Nest.js. As far as I understand, this problem is relevant not just to Nest.js but typescript as well. I have tried various th...
News asked 16/12, 2022 at 22:2

6

Solved

I am following this tutorial to create a nest project. I have installed Nest CLI using this command: npm i -g @nestjs/cli I have checked the list of packages installed locally using the follow...
Libb asked 30/7, 2019 at 7:40

6

I am started with nestjs recently and i want apply a middleware for all routes, except the auth route. In the documentation it says that I can add all the controllers or paths of the routes where ...
Selfconscious asked 11/4, 2020 at 6:36

7

Solved

I'm starting with Nest.js and I'm getting an error after I create a service: Nest can't resolve dependencies of the PhotoService (?). Please verify whether [0] argument is available in the current...
Eject asked 12/6, 2018 at 1:46

2

Solved

I'm writing in Nest.js framework for 3 years and i got the message in by backend-application: WARN [DependenciesScanner] In the next major version, Nest will not allow classes annotated with @Injec...
Backboard asked 26/5, 2022 at 14:8

2

Solved

I'm trying to set configuration variables on my project using the official documentation. I added the following line to my app.module.ts imports: ConfigModule.forRoot({ isGlobal: true }), I cr...
Malonylurea asked 26/4, 2020 at 9:45

4

Solved

I've a monorepo using nx with multiple node/nestjs apps. Some of the apps doesn't require all the packages used in the other apps. Because it's a monorepo, I need to install all packages for every ...
Entice asked 22/8, 2019 at 19:43

6

Solved

I'm getting the error when I'm decorating the class in nestjs service. The Typescript is compiling without errors, and I'm getting this problem only in VSCode. Unable to resolve signature of parame...
Woodbury asked 24/1, 2023 at 20:44

10

Solved

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: "^0.3.0" I'm using nest js an...
Fergus asked 21/3, 2022 at 12:1

3

How to do validation with database like unique filed validation in nest JS using the class validator? I created a custom validation class and tried it. But userService was undefined when I console ...
Stratify asked 7/3, 2023 at 9:51

7

Solved

I'm setting up a new NestJS application, and I've just added class-validator in order to validate controller input, but it seems to be completely ignored. This is the DTO: import {IsString} from '...
Willful asked 10/3, 2020 at 11:41

2

Solved

is there a way how to run an exception through the apollo exception handler manually? I have 90% of the application in GraphQL but still have two modules as REST and I'd like to unify the way the ...
Tavis asked 18/5, 2020 at 7:56

2

I'm new at typescript. My Nestjs project app is something like this. I'm trying to use repository pattern, so i separated business logic (service) and persistance logic (repository) UserRepository...
Amaranth asked 12/3, 2020 at 10:54

7

I've had a problem with dependencies in NestJS. On launch my NestJS app, compiler throw me this: [Nest] 16004 - 09.04.2022, 16:14:46 ERROR [ExceptionHandler] Nest can't resolve dependencies of the ...
Iolenta asked 9/4, 2022 at 14:16

10

Solved

I'm working with NestJS and TypeORM. When trying to call the createMailLogEntry method of the repository, I'm getting the following error: TypeError: this.mailLogEntryRepository.createMailLogEntry ...
Florrieflorry asked 20/3, 2020 at 15:38

14

I'm started to learning MEAN stack and when I went to Express I saw that existed a extra layer in the express framework that is called NestJS. It had all what I wanted and it had an Angular-like sy...
Maryn asked 15/8, 2020 at 18:12

8

Solved

I am developing a next.js application with nest.js as the backend. Now, I am having cors error even when I have cors enabled in my main.ts file of nest.js. Here's my main.ts file. import { NestFa...
Photocopy asked 6/1, 2022 at 15:39

4

Solved

I'm trying to return a json file as a controller response, but I can't get the content of the json. import { Controller, Get, Res, HttpStatus, Query } from '@nestjs/common'; import { Response } fr...
Caleb asked 18/12, 2019 at 0:33

11

Solved

I am doing a basic end to end testing here, for the moment it's failing, but first I can't get rid of the open handle. Ran all test suites. Jest has detected the following 1 open handle potentiall...
Bartholomeus asked 19/7, 2021 at 8:57

4

Solved

I am trying to make a POST request using @nestjs/axios and then access the response. This is my code so far: verifyResponse(captcha_response: String): Observable<AxiosResponse<any>> { ...
Groats asked 11/9, 2021 at 4:15

© 2022 - 2025 — McMap. All rights reserved.