Extends result relations
Hi,
I have 3 different objects:
The last one have a manyToOne relation for both User & Exoskeleton.
My goal is to add a custom field to User, named
currentExoskeleton
, based on the relation to exoskeletonAttribution (i take the last in date), to fetch to associated Exoskeleton.
So i started to wrote this:
But typescript already crying on me on the needs part, "impossible to align type boolean to never". And i would also like to know if it's possible to user async/await on compute ? (if yes, how ? should i return an async function from the compute function ?)
Thanks 😉1 Reply
My goal would be to have access to an Exoskeleton object on the User object, based on a query from the ExoskeletonAttribution