Answer the question
In order to leave comments, you need to log in
How to validate API on next.js + prisma2?
There is a project on next.js and prisma.js . What is the best way to implement API validation? the problem is - I already described the entity schema in prisme, but in order to use validation, for example, using YUP, you need to describe the same schema again. Maybe I don't see any means that next.js and prisma provide to do this without code repetition? I don't want to change my plans twice.
Tell me where to dig who has experience.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question