Monday 10 April 2017

Handle validation in knexJS?

How to handle validation using KnexJS? Is there's a way to handle 'field-specific' errors when using knexJS? , I could easily get the error through the error code BUT I need to provide a more meaningful message to the end user, for instance, instead of replying with "Duplicated Entry" I want to reply with "User name already exists".Thanks in advance

Submitted April 10, 2017 at 05:27PM by munzman

No comments:

Post a Comment