my nextjs api routes
So is there any method to check if all the field of an object are defined instead of checking each key of that object is defined
I mean I only need to accept data which has all variables in the object defined at the server side
In other languages like rust the client has to send the exact data defined at the server so is there any lib or something to do like that ?
zod, joi, ...
Обсуждают сегодня