Combine/Transform result of multiple queries
Iβm trying to create a hook that combines the data from 2 endpoints. I was able to transform the incoming data of a single query using
I hope this example makes it clear what the goal is.
(Note, if there is a better way to merge the result of 2 parallel queries, please let me know
I might not be looking in the right direction for my problem.)
Thanks in advance
select. What I really need is the data of 2 parallal queries combined tho. I was trying to use the select function for this purpose like below, but i'm not sure this is the best way of going about it. Also, this way hook useC only returns the data, without any of the query information like loading or errors.I hope this example makes it clear what the goal is.
(Note, if there is a better way to merge the result of 2 parallel queries, please let me know
Thanks in advance