create a method to query on demand?
how do i create a action method that can query the database on demand to be used on the frontend, i tried to use internalquery with a action, but the action didnt allow me to return the internal query? I need to use it in the frontend on demand...
3 Replies
const search = useQuery(api.xxx.xxx);
// later
search('xxx')
these are "one-shot queries"
nice thank you