Hello, YouTube.
In this video, we will be looking at how we can validate data we get from a client before we try to add it to our database. You always need to ensure that the data you add to your database is in the correct format. It is not enough to assume the client side has done enough validation, your backend too needs to validate the data.
This prevents any malicious data from being submitted to your database, also helps keep your database to be consistent.
We are using JOI to validate the data we get from the client: we are looking at how to validate emails, nested objects and more.
TadJobs API Playlist: • Setup Express.js with Typescript | Bu...
Read more about JOI: https://joi.dev/api/
Thank you for checking out the video.
Please do not forget to subscribe!
#typescript #joi #datavalidation
Watch video Use JOI to Validate Data in Express with TypeScript online without registration, duration hours minute second in high quality. This video was added by user Tadnology 11 October 2022, don't forget to share it with your friends and acquaintances, it has been viewed on our site 4,87 once and liked it 4 people.