Validation Errors. What’s the best approach?
Do you throw an exception? Do you return an object like ‘{ data: {}, errors: [] }’? How would you best handle this? It’s also a requirement that all the validation takes place to return a list of the items that are invalid. Any resources on this concept would be much appreciated too!