PaddyP
tRPC2y ago
1 reply
Paddy

Kirimase's tRPC usage CRUD route

Hey, using Nico's Kirimase tRPC package. I am trying to call the queries and mutations, in the db/schema/posts it has the 'to use' CRUD functions, but how do I use these in my postsRouter as for example: /api/trpc/posts.create and /api/trpc/posts.id/1?

I have been seeing some createCaller online, and haven't been able to use this with my values from my form.

Thank you in advance!
Screenshot_2024-01-17_at_5.22.58_PM.png
Screenshot_2024-01-17_at_5.18.47_PM.png
Screenshot_2024-01-17_at_8.29.21_PM.png
Was this page helpful?