NestJs – project architecture [closed]
Closed 3 days ago.
NestJs – project architecture [closed]
Closed 3 days ago.
Method wo parameters issue in Nest.js
I have a method
Method wo parameters issue in Nest.js
I have a method
I am facing A circular dependency issue in my nestjs project
I am trying to import User Service which I exported from User Module inside authorization service but I am facing circular dependency issue and I have tried forwardRef() => UserService) but it doesn’t work.
How to inject config into Custom CacheInterceptor in Next.js
I have created a custom CacheInterceptor
to change the cache key:
In Nest.js, how to tap into lifecyle events from durable providers to release db connections
I have created a durable provider to return a db connection for a given tenant. The provider will also keep a local cache of connections to reuse. As request-scoped providers cannot tap into application lifecycle events, I don’t have a way to trigger closing the connections when app.close()
is triggered. In my example below, onModuleDestroy
will never be called, which results in Jest warnings like
How to create the “src/app” instead of the “src” directory with “nest new”
This command will create the “helloworld/src” directory.
Share same module under two different routes in NestJs
Context: I have the following modules in my nestjs app. Which have just the boilerplate code. These modules were generated using command nest g resource resourceName
.
Circular Dependency in NestJs with a module that is called by all other modules
Im getting a Circular dependency error for the following situation, Lets say I have 3 modules; AuthModule, UsersModule, CustomLoggerModule.