Question Bank
1899 approved questions from the community
What is GraphQL?
Global modules in NestJS should be registered only once, generally by the root or core module.
Middleware in NestJS must call next() if it doesn't end the request-response cycle.
The @Injectable() decorator is required for all providers in NestJS.
What is the purpose of the @Res() decorator?
What is the purpose of environment variables in NestJS?
The default expiration time for cache in NestJS is 5 seconds.
When using @Res() decorator, NestJS automatically handles the response for you.
What is the role of the Multer library in NestJS?
What is the purpose of the @ApiOperation() decorator?
What is the purpose of the @ApiProperty() decorator?
How can you generate API documentation in NestJS?
A provider in NestJS always requires the @Injectable() decorator.
How does the NestJS Logger differ from console.log()?
What is the difference between @Injectable() and @Inject() decorators?
What is Dependency Injection (DI) in NestJS?
What is the primary purpose of middleware in NestJS?
Tokens should have an expiration time to limit the window in which a stolen token can be used.
What is the main difference between NestJS and Angular?
Interceptors in NestJS are inspired by the Aspect Oriented Programming (AOP) technique.