T
tRPC

❓-help

Help with queries vs mutations

CCliff1/17/2024
super basic question here from a newb to trpc...i see the calls are basically split into two type, queries and mutations. If I were to build a simple chat app, would posting a comment be a mutation? What if the data was ephemeral, like, I wasn't storing it, just passing it. Or if I was sending a parameter to the server and the server just used that parameter to look upo data from a third party service and return the results...that is still just a query, right? Even if the client was storing a 'history' of requests?

Looking for more? Join the community!