NestJS · Middle · Question 46 of 75
What is a hybrid application in Nest?
- 1An app written in both TypeScript and JavaScript
- ✓Correct answer: One app that serves HTTP and also listens to one or more microservice transports (
app.connectMicroservice()) - 3An app that runs in the browser and on the server
Explanation
Call app.startAllMicroservices() before app.listen(). By default, global enhancers aren't shared with microservices unless you enable inheritAppConfig.