Barakonda
Barakonda
TtRPC
Created by Barakonda on 11/18/2023 in #❓-help
Is there a similar handler to createNextApiHandler for fastify?
Never mind' i found it, it's in trpcOptions -> onError of the fastifyTRPCPlugin
3 replies
TtRPC
Created by Barakonda on 3/31/2023 in #❓-help
async middleware
nevermind... i didn't notice and i had an import loop.... i really shouldn't code in the middle of the night
4 replies
TtRPC
Created by Barakonda on 3/31/2023 in #❓-help
async middleware
it occures when running it- the build works fine const dbMiddleware = middleware(async ({ path, ctx, next, input }) => { ^ TypeError: (0 , createRouter_1.middleware) is not a function
4 replies
TtRPC
Created by Barakonda on 3/17/2023 in #❓-help
pipe/unstable_pipe
just checked' i have 2 projects in one it exists and in the other it doesn't 10.9.0 - here it doesn't exist but here 10.1.0 it does weird how it exists in an earlier version but was later removed and now returned? or maybe its a bug with typescript?
4 replies
TtRPC
Created by Barakonda on 3/4/2023 in #❓-help
input using z.or not working properly
@msalsbery yes' removing the optional works... pretty weird
12 replies
TtRPC
Created by Barakonda on 3/4/2023 in #❓-help
input using z.or not working properly
@Nick Lucas true, but it works if its a sub object inside the main input schema(from another part in my project) like this let input = z.object({ name: z.object({z.string().optional() }).or(z.object({ id: z.number().optional() }));
12 replies
TtRPC
Created by Barakonda on 3/4/2023 in #❓-help
input using z.or not working properly
@msalsbery ill check and get back to you soon
12 replies
TtRPC
Created by Barakonda on 3/2/2023 in #❓-help
How can I disable batching with fastify adapter?
ill try
3 replies