All quizzesHard
Pipeline Internals
Preview — 3 of 10 questions
Internally, which NestJS construct assembles guards, interceptors, pipes, and the handler into a single callable per route at bootstrap?
AThe RouterExecutionContext (route handler factory) built by the core's execution context creators
BThe RouterModule
CThe Reflector
DThe HttpAdapterHost
A guard must read metadata that could be on the class or the method, preferring the method. Which call expresses this precisely?
Areflector.get(KEY, context.getClass())
Breflector.getAllAndOverride(KEY, [context.getHandler(), context.getClass()])
CReflect.getMetadata(KEY, context.getArgs())
Dreflector.getAllAndMerge(KEY, [context.getClass(), context.getHandler()])
A single interceptor serves HTTP, WebSocket, and gRPC. What is the type of context.getType() and how should you safely extend it?
A'http' | 'ws' | 'rpc' by default, extendable via a generic like getType<GqlContextType>()
BAlways string; no generic support
Cnumber representing a transport enum
D'rest' | 'graphql' only
Sign up free to play
Answer all 10 questions (7 more), see explanations for every answer, and track your score.