Ayush GoyalA
tRPC3y ago
1 reply
Ayush Goyal

opts.input is of type undifined

register: publicProcedure.input(
        RegisterSchema
    ).mutation(async (opts) => {
        //checking for existing user
        const existingUser = await db.select().from(user).where(eq(user.email, opts.input.email));


RegisterSchema is a zod schema comming from an another file

it is giving me the error opts.input is of type undefined
Was this page helpful?