-1

Can you please explain the meaning and use of validateAsync function of strongloop.enter link description here

Ashish Yadav
  • 3,039
  • 1
  • 16
  • 23

1 Answers1

0

It's used to validate the name property on the User model in the example. It checks if the provided name is equal to "bad" and returns an error if it is. The example also shows you how to validate using the async and sync styles.

superkhau
  • 2,781
  • 18
  • 9