2022-07-06
1436
#node
Nkere-Awaji Inwan
12430
Jul 6, 2022 â‹… 5 min read

How to handle data validation in Node.js using validatorjs

Nkere-Awaji Inwan Full-stack/GitOps engineer at Mercurie. GCP fanboy. I write code and about code.

Recent posts:

Managing Search Parameters In Next.js With Nuqs

Managing search parameters in Next.js with nuqs

Optimize search parameter handling in React and Next.js with nuqs for SEO-friendly, shareable URLs and a better user experience.

Jude Miracle
Nov 27, 2024 â‹… 10 min read
React logo over a beige background

Data fetching with Remix’s loader function

Learn how Remix enhances SSR performance, simplifies data fetching, and improves SEO compared to client-heavy React apps.

Abhinav Anshul
Nov 26, 2024 â‹… 5 min read
Top 8 Fullstory Competitors And Alternatives

Top 8 Fullstory competitors and alternatives

Explore Fullstory competitors, like LogRocket, to find the best product analytics tool for your digital experience.

Jeff Wharton
Nov 26, 2024 â‹… 13 min read

Adapting to user motion and theme preferences with CSS and JavaScript

Learn how to balance vibrant visuals with accessible, user-centered options like media queries, syntax, and minimized data use.

Oscar Jite-Orimiono
Nov 25, 2024 â‹… 5 min read
View all posts

One Reply to "How to handle data validation in Node.js using validatorjs"

  1. Very nice article. I really enjoyed reading through.

    Just a quick thought: To match-up Laravel’s way of validation; how about renaming the ‘exist’ rule to ‘unique’? And adding another rule ‘exists’ to ensure value being passed actually exists in the database (e.g. Gender, Country, State). It would be even better.

    Keep up the good spirit.

Leave a Reply