StivoS
tRPC2y ago
2 replies
Stivo

Is there a way to pass parameters to procedure on call?

I would like to pass the required permission to the procedure like in this example:
create: authedProcedure("user.create").input(createUserSchema).mutation(async ({ input }) => {
    return createUserHandler({ input })
}),


Any idea how i could achieve this?
Was this page helpful?