NestJS · Middle · Question 25 of 75

What does @Expose({ groups: ['admin'] }) with ClassSerializerInterceptor allow?

Explanation

Set the groups per route with @SerializeOptions({ groups: [...] }).

Further reading

Problem with a question

NestJS · Middle · question 25

Test yourself

Take the NestJS · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz