backbone
backbone
TtRPC
Created by backbone on 4/30/2023 in #❓-help
how to integrate with Redis (ioredis)
Any middleware?
4 replies
TtRPC
Created by backbone on 4/16/2023 in #❓-help
how to set request timeout in client
createProxyClient has no option about timeout like axios does. Just in one router request (query or mutate) use AbortController.But I do not want each router request to add this signal.It is boring.Any solutions?
6 replies
TtRPC
Created by backbone on 4/6/2023 in #❓-help
[help] Uncaught (in promise) TRPCClientError: Property description must be an object: u
2 replies
TtRPC
Created by backbone on 3/18/2023 in #❓-help
how to use the same Zod validation both client and server's procedure input
When submitting forms, I need the same validation. How to reduce the repeated code?
2 replies
TtRPC
Created by backbone on 3/13/2023 in #❓-help
tRPC doesn't support redirect
I use tRPC & @trpc/server/adapters/express. procdure.query({ctx: { res }} => { res.redirect('xxx') }) this will stop node process and some errors like: Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client. But if I just use expressjs,it does not happen.
6 replies
TtRPC
Created by backbone on 3/13/2023 in #❓-help
How to get external key other than INPUT from RESTFUL request?
SSO callback my api like api/trpc/user.login?token=abc
11 replies
TtRPC
Created by backbone on 3/8/2023 in #❓-help
how to build tRPC and Prisma with express?
I am using TSC as the official docs example does. But when I use paths in tsconfig.json, It does not work because of not transforming paths . Should I add webpack like nestjs doing?
14 replies