How can I useQuery when I click a button
I have this privateProcedure on the backend. I want to call it when I hit a button in my frontend:
How do I do that? I am btw gonna query a database for that date, and return something. I just simplified it for this example
6 Replies
mutation not query
i thought mutation was for when you needed to change something? all i want to do is fetch something if it contains the date i pass in
semantics
really doesnt matter what you use either for
alright
which should i use then?
mutation is the easy choice here, just works
ok ill go for that then