Question Bank
3705 approved questions from the community
How does NestJS handle asynchronous operations?
What is the primary purpose of DTOs (Data Transfer Objects) in NestJS?
Which interface must a guard class implement in NestJS?
What is the primary responsibility of guards in NestJS?
What is the primary purpose of pipes in NestJS?
Middleware in NestJS must call next() if it doesn't end the request-response cycle.
What is an interceptor in NestJS?
What is the primary purpose of the @Body() decorator in NestJS?
Global modules in NestJS should be registered only once, generally by the root or core module.
What is GraphQL?
What is the purpose of the @Resolver() decorator in NestJS?
Services in NestJS are responsible for business logic and interacting with data sources.
Observables are provided by the RxJS library and are integrated into NestJS for handling asynchronous streams.
The ValidationPipe in NestJS can automatically validate incoming request bodies against DTO classes.
Which interface must a pipe class implement in NestJS?
Refresh tokens typically have a longer expiration time than access tokens.
In NestJS, when using the forwardRef() utility to resolve circular dependencies, you must use it on both sides of the circular relationship.
What is the purpose of the @Query() decorator in NestJS?
What command is used to run migrations in TypeORM?
What is the purpose of the @Res() decorator?