I made and paragraph which can be edited with the click of a button and after it has been altered you can click on another button to update it, it then sends the updated data (string) within the paragraph to my database as where it will show the updated data in its respective table. I now need to add backend validation to this process something as simple as the data (string) within in the paragraph needs to at least have 35 characters in it for it, this validation needs to be in its own model. i am quite new to TS so i've no clue on how to approach this.
#back end validation
3 messages · Page 1 of 1 (latest)
you could use class-validator
https://www.npmjs.com/package/class-validator
or maybe a JSON validator, like zod and alike