Working with return validator and a query that enriches data
In our project, we use relational tables and in a query like the one below, where we wanna enrich video with its related data. We wanna use this new return validation, but find it a bit hard to get the returned object to actually match the validator we define.
I'd love to ask for some advice on how to best approach this, as we are looking to do it quite a lot with other pieces of data in our app.
Return validator:
