Consuming external API with TRPC.
Hi so I have created this TRPC query that consumes an api from a node server:
But it's not fetching anything, any idea what I might have missed?
2 Replies
Does hitting it with curl or postman return anything?
Sorry there was an error on my end. Although I can't still figure out how to do this using client-side fetching this only works when I query it through trpc
but using react-query useQuery, won't allow me to query an external api or atleast there is something that I missed