Proxy prisma calls to FE with tRPC
Hi there. First of all, I'd like to thank everyone involved in the T3 project. It is really awesome.
I have a question. Is there a way to just proxy prisma calls to FE with tRPC? So that we don't have to create procedures, duplicate inputs... Just something like:
And then on the FE:
if all you need is something simple.
And
when you need to do something with, let's say, permissions check or some other custom logic that prisma is not aware of.
That would be so cool, because, ATM, most of my procedures is boilerplate, where I create them just to make existing prisma endpoints available at FE with exactly the same API, for example:
I have a question. Is there a way to just proxy prisma calls to FE with tRPC? So that we don't have to create procedures, duplicate inputs... Just something like:
And then on the FE:
if all you need is something simple.
And
when you need to do something with, let's say, permissions check or some other custom logic that prisma is not aware of.
That would be so cool, because, ATM, most of my procedures is boilerplate, where I create them just to make existing prisma endpoints available at FE with exactly the same API, for example:
