validate()
This methods validates an entity data.
@Returns an object with an error and a value property
If the error is null, it is valid. The value returned is the entityData sanitized (unknown properties removed).
The validate() method also returns a Promise if you need to chain it
Last updated