T
tRPC

❓-help

Should useQueries be able to 'select' data?

JUJordan (UNCVRD)1/6/2023
Hi! I'm trying to use the newly implemented useQueries method to query for multiple items. I need to modify the result, so I'd like to use the select property. However, by doing so, my results aren't modified to the properties I've selected, it still just returns the whole object. Image #1 shows my select statement attempting to only grab the id and permissionId Image #2 shows the logged result in my browser displaying the full object. Am I missing something? My output is correctly typed in TS to only contain id and permissionId but the actual values are different 🤔 also note that im just returning my permission argument from my map in the select

Looking for more? Join the community!