Questions tagged [nestjs-config]

196 questions
0
votes
1 answer

NestJS Export. connection, postgres multi tenancy

I was trying to implement multi tenancy architecture using postgres. It is working as expected on tenant service. I want import this CONNECTION to a different module called shops.How can I do that. What you are currently seeing is tenant…
Ujjual
  • 958
  • 2
  • 10
  • 36
0
votes
1 answer

Nest can't resolve dependencies of the Service in Global Module

I have a global module called FirebaseModule which exports a FirebaseService, I import this module to the app.module.ts and then I try to use the FirebaseService inside a UsersService and it fails with a missing dependency issue. Something…
0
votes
2 answers

How to implement clinic.js in Nest JS Framework (typescript)

I implemented Clinic.js in Node JS. But I don't know how to implement clinic.js in Nest JS Framework. I explore it how to implement clinic.js to Nest JS. But I couldn't get any answer can you please tell me.
0
votes
2 answers

nestjs not able access app running on local network on windows 10

I am unable to access NestJs app running on port 3000, I am running the app using this code: await app.listen(3000, '0.0.0.0', function () { console.log('listening on port 3000'); });
0
votes
1 answer

How to generate migration file in typeorm using nest js

I am new this framework Nest JS and created sample Restful API but could not migrate the entity file. I tried many ways it's not working. first time run migration command to generate migration file it's working fine. but second time creating a new…
0
votes
2 answers

How to setup different environment file in nest js using postgresql

I am new this framework. I connected PostgreSQL database using ormconfig file. but I need to configure development environment, production environment, test environment. How to achieve this scenarios. I tried to use config service in my project. but…
0
votes
0 answers

Why NestJS controller level ExceptionFilter using @UseFilters(new XXXFilter()) wont work if there is global one in useGlobalFilters in app level?

I defined two custom HttpExceptionFilter one used in global and one in controller api level. But when I debug I found that controller level one will always be skipped. Is there way we can allow both filter functional? Because I want to further…
ey dee ey em
  • 7,991
  • 14
  • 65
  • 121
0
votes
1 answer

About Environment variable configuration of nestjs

in the file of app.module.ts, I used Environment variable imports: [ ConfigModule.forRoot({ envFilePath: [`./src/config/${process.env.NODE_ENV}.env`], isGlobal: true },), MongooseModule.forRoot(process.env.DATABASE_URL, { …
tomsma
  • 39
  • 5
0
votes
1 answer

Cannot read property 'authorization' of undefined

Please don't mark this question as 'duplicate'. I found similar questions elsewhere but couldn't find any proper solution. When I use the context inside the GraphQLModule in Nestjs app configuration I never find the req. When I console this req it…
Shamim
  • 635
  • 2
  • 12
  • 28
0
votes
2 answers

nestjs issue with variable in .env file

Im using NestJS framework to build a rest api, i have a issue getting the environment variables. I have a .env with a variable "SMB_SHARE" with a path string, when i pass this variable to a class constructor of a smb2 libray, this throw an error,…
0
votes
1 answer

"this" is undefined when function of an Inject-able class is sent as argument to another module

This is what I am trying to do, I pass a function reference from Provider1 (present in module1) to Provider2 (present in module2). When I try to invoke the function, the value of "this" is undefined. Any idea on what might have gone…
0
votes
1 answer

How to map graphQL query property to different response property?

I have a graphQL type defined in a .graphql file for a nestjs schema first application. The type is: type address { id: String Title: String Url: String } Now, using nestjs I have a resolver function as @Query('address') async getAll():…
Ankit Agarwal
  • 30,378
  • 5
  • 37
  • 62
0
votes
1 answer

Nestjs custom CurrentUser decorator throw host.getArgByIndex is not a function

I am trying to implement login system using graphql in nest js. I have login EP - works fine - returs Bearer token. But I have query to get current user: import { CurrentUser } from '../auth/user.decorator' . . . @Query() …
ciyada8549
  • 61
  • 4
0
votes
3 answers

Angular 8 and NestJS

I've been looking all over for a straight-forward way to add NestJS to my Angular 8 project. However, I haven't found a good way to do that. I've pulled a couple of GitHub repositories and tried to run those, and even those didn't work, with me…
Cameron G
  • 31
  • 4
-1
votes
1 answer

I want to build NestJS app in javascript language but it give some error on tsconfig.json

Can you help me how to build nestjs with language javascript? i was create the nestjs app with "nest new --language js new-app-name", and i want to deploy it into vercel. i was try to build with nest build but it show an error message like this: "…
1 2 3
13
14