joi validation examples

best solution to handle HAPI validation errors?

in my project i written below route code for hapi

So when I don’t pass the firstName it throws error like this

Now, I was trying to handle the above error in catch

So i found the best solution… Continue Reading