hasanaktasTRH
Convex Community2y ago
12 replies
hasanaktasTR

useQuery single request

I have a query and I have multiple tables that affect it.

What I want is to throw the query once and use it on the client. I can send a request as an http end but what I want is an internal solution.

For example
const data= useQuery(api....) //web socket
const data=useFetchQuery(api....) //http request

We can turn the API from query function to mutation function on the server and use it on the client but this time we give up the backend cache
Was this page helpful?