NestJS · Senior · Question 75 of 75

Why may a global ClassSerializerInterceptor not hide fields when you return results from Prisma?

Explanation

With Prisma, select or omit in the query is the most reliable way to never fetch sensitive fields.

Further reading

Problem with a question

NestJS · Senior · question 75

Test yourself

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

Take this quiz