All quizzesMedium
Custom Pipeline Elements
Preview — 3 of 10 questions
Which interface must a custom pipe implement, and what method does it provide?
APipeTransform with transform()
BCanActivate with canActivate()
CNestInterceptor with intercept()
DExceptionFilter with catch()
In transform(value, metadata), what does the second argument metadata describe?
AThe argument being processed: its type, metatype, and optional data key
BThe HTTP response headers
CThe list of other pipes in the chain
DThe authenticated user
A pipe should only validate when it runs on the request body, not on params/query. Which metadata field do you check?
Ametadata.data === 'body'
Bmetadata.metatype === 'body'
Cmetadata.type === 'body'
Dmetadata.source === 'body'
Sign up free to play
Answer all 10 questions (7 more), see explanations for every answer, and track your score.