tRPCttRPC
Powered by
mservaisM
tRPC•2y ago•
1 reply
mservais

calling tRPC procedures from a function (e.g. a cron on vercel)?

Hey everyone,

I am using nextjs App router together with tRPC and it's working super well so far!

I would like to call tRPC procedures periodically (like once per month with a cron job) and also from a function (e.g. user submits a form, once it's sucessfully submitted, I wait 5 seconds and then call a mutate procedure that updates stuff in my DB).

I am actually super confused on how to do that - so far I have mostly called the useQuery and useMutation hooks from React client components.
tRPCJoin
Move Fast & Break Nothing. End-to-end typesafe APIs made easy.
5,015Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

Calling procedures from Next server actions
sevenSseven / ❓-help
2y ago
Calling Express `request.send` inside tRPC middleware/procedures
skylerdjSskylerdj / ❓-help
16mo ago
Nested tRPC procedures.
Deepak SharmaDDeepak Sharma / ❓-help
2y ago