All quizzesHard
Versioning & Streaming
Preview — 3 of 10 questions
You call app.enableVersioning({ type: VersioningType.URI }). What URL shape does a @Version('1') controller now serve?
A/users with header X-Version: 1
B/users with media type application/vnd.api+json;v=1
C/users?version=1
D/v1/users
What does @Res({ passthrough: true }) allow that a plain @Res() does not?
AIt lets you read the request body twice
BIt lets you use the raw response (e.g. set a cookie) while still returning a value for Nest to serialize
CIt disables all interceptors for the handler
DIt automatically streams the response
When would you inject @Next() into a route handler?
ATo pass control to the next Express middleware/handler in the chain
BTo call the next route handler in NestJS's controller list
CTo advance an RxJS Observable
DTo trigger the next lifecycle hook
Sign up free to play
Answer all 10 questions (7 more), see explanations for every answer, and track your score.